javascript - npm install error, please ask for help
学习ing
学习ing 2017-06-12 09:28:21
0
4
741

When installing android sudio, npm install keeps reporting errors and the reason cannot be found.

学习ing
学习ing

reply all(4)
刘奇

If you use npm install to install dependencies, first you must have the package.json configuration file. If not, you need to add the dependent installation package name later if you want to install dependencies -g is the global installation --save is a local installation

洪涛

It is okay to add the package name, that is to install a specified package. If you do not add the package name, it is also a legal command. If you are in a project folder and there is a package.json file, dependency packages will be installed based on this file.

So make sure you have package.json first

Also, what is your npm version? If it is 5.x.x, take a look at this official issue: https://github.com/npm/npm/is...

阿神

1.npm install xxx:xxx adds the package;
2. The package.json file is configured in the current file directory

小葫芦

You need to add the package name after install

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template