First, if you only use it for projects, add the suffix --save
to the cmd command line.
Second, npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0 This sentence reminds you that your lodash is 2.0.0, but the modules you install must be 3.0.0
Thirdly, the updated version of node is very fast now. Although many things end up running on the latest version of node, and if you use Taobao's mirror, since it is not updated to the implementation, some The npm package is still relatively old. I personally recommend using the official npm package and just learn how to circumvent the firewall.
With -g, it is a global installation. First check if you have permissions to the relevant paths. Use the command line with administrator permissions under win. Use sudo under Linux/OS X.
Happiness comes so suddenly, I don’t know how it gets better.
Downloaded and updated node.js
npm has been replaced by Taobao’s npm image
First, if you only use it for projects, add the suffix --save
Second,
npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
This sentence reminds you that your lodash is 2.0.0, but the modules you install must be 3.0.0Thirdly, the updated version of node is very fast now. Although many things end up running on the latest version of node, and if you use Taobao's mirror, since it is not updated to the implementation, some The npm package is still relatively old. I personally recommend using the official npm package and just learn how to circumvent the firewall.
With -g, it is a global installation. First check if you have permissions to the relevant paths. Use the command line with administrator permissions under win. Use sudo under Linux/OS X.
Hello, has it been resolved? I also encountered the same problem
A certain module is installed by git and there is a .git directory in it. Just delete the .git
With -g, administrative rights are required. Installation command: $sudo npm install -g gulp //Just enter your password again