Difference between -- save-dev and -- save when npm installDescription of two fields in package. json
I have been using the npm package manager. I have made some analysis on the differences between npm install module -- save-dev and npm
A node package has two types of dependencies, one is dependencies and the other is devdependencies. The former depends on the items that are required to run the package normally, the latter is the dependencies required during development, such as some packages for unit testing.If you download the package and run it in the package root directory
npm install
By default, two types of dependencies are installe
System version: OS X 10.11.3
➜NPM install NPM WARN deprecated Npmconf@2.1.2:this package has been reintegrated into NPM and are now out of
date wi th respect to NPM
> chromedriver@2.21.2 install/users/user/wisedu/flow-wisedu/node
In the process of installing node, NPM I keeps an error, such as
NPM err! Write after end
After experimenting with various methods, it is possible to discover the problems caused by the NPM version, and the problem is solved after the release is reduced. The installation process is now sorted as follows:
1. Download node(download here is node-v8.11.1-x64)
Clic
When the NPM install package is dependent on the Windows environment, some errors often occur, and the following is a personal workaround:Error OneMissing python environment:G:\nodejs\moviesite\node_modules\bcrypt>ifNot defined NPM_CONFIG_NODE_GYP (node"D:\Program files\nodejs\node_modules\npm\bin\node-gyp-bin\\. \.. \node_modulesnode-gyp\bin\node-gyp.js"Rebuild)
Install Node + NPM in Windows
Author: zhanhailiang Date:
1. download and install the latest version nodejs: node-v0.10.32-x64.msi. Note: During installation, add node.exe to the Path. The test is as follows:
D:\Users\wade.zhan>node --versionv0.10.32
2. Download and install git: git. The test is as follows:
D:\Users\w
The first error message is
Error "@angular/COMPILER-CLI" package is not properly installed
The following error information appears in the attempted scenario two o'clock
NPM err! Code eintegrityNPM err! sha1-omjbxbx6n5nvnwrvkffdgvdt2dq= Integrity checksum failed when using sha1:wanted sha1-omjbxbx6n5nvnwrvkffdgvdt2dq= But got sha1-pvzuut5szaqjmvkcciwuicpr9ky=. (259028 bytes)
NPM err! A Complete log of this r
One: node. js Ann TurnsMethod One: Download the node. js for MacAddress: http://nodejs.org/download/Download the pkg directly, double-click the installation, all the way to next, it is easy to get it done.The installation will alert you that the path to node and NPM is/usr/local/bin.Method Two: Install with homebrew1. Installing homebrewHomebrew installation is very simple, open the terminal copy, paste the
username for Debian is admin, not root or EC2:
Log in and switch users to root
Sudo-i
3 Install Node.js and NPM
The latest version of Nodejs and NPM will need to manually download the source code and compile the installation locally.
The node version installed here is 0.10.30.
Before installing, you need to
NPM package installation is divided into local installation (locally), the global installation of two, from the command line to see, the difference is only G-only, such as:The code is as follows: Copy codeNPM Install # Local InstallationNPM INSTALL-G # Global Installationexplained separately below.Global Installation:when NPM
NPM INSTALL-G Global Installation always has a solution for permission permissions issuesWhen you start using node, when you use NPM to install global packages, you habitually use npm install-g xxx, and then always prompt for perm
Running the NPM install command to install the dependency pack, on the Mac vagrant installed on the virtual machine is not a problem, on the Aliyun CentOS also no problem, but in the Windows environment is also the same vagrant installed environment of the same virtual machine is unsuccessful, the error is as follows:
NPM
NPM package installation is divided into local installation (locally), the global installation of two, from the command line to see, the difference is only there -g , such asnpm install grunt # 本地安装npm install -g grunt-cli # 全局安装What is the difference between these two types of installation? From the description of the
This article describes how to install Node. JS on Amazon's one-year free plan, NPM, and OurJS Blog system ., For more information, see Debian for the Community edition. The operation commands of Debian and Ubuntu are in the same line, I am familiar with it. The following installation process is also applicable to the installation of node. js and NPM ).
1) Regist
Stroll Reactjs, Angular2,vuejs community, Daniel Blog, when you know the most likely to see the webpack,webpack this build tool has been widely recognized in the community, And Webpack has become the standard of react.js development, so we need to learn about Webpack.So I read a lot of blog on the Internet, the leisure time summed up some of the methods used, due to the limited technology may be some lack of hope to advise.First Webpack is what, using webpack is to solve what kind of programming
Objective
Recently found a problem, run the npm install command to install a dependency pack, on the Mac vagrant installed on the virtual machine is not a problem, on the Aliyun CentOS is not a problem, but in the Windows environment is also a vagrant installed environment of the same virtual machine is not successful, the error is as follows:
NPM's package installation is divided into local installation (locals), global installation (globally), and from the command line, the difference is just that there is no-G, such as
NPM Install Grunt # Local Installation
NPM install-g GRUNT-CLI # Global Installation
What's the difference between the two installation
NPM's package installation is divided into local installation (locals), global installation (globally), and from the command line, the difference is only G, for example:
Copy Code code as follows:
NPM Install Grunt # Local Installation
NPM install-g GRUNT-CLI # Global Installation
explained separately bel
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.