npm install installation command parsing

npm install installation command parsing

Here mainly on npm install installation command, and the parameters of meaning, very simple and very practical

  • Global name mounted reliance npm i dependent name 2 -g 1
  • Development dependence: in project development needs, do not need to run the line depends npm install rely name --save-dev
  • Project dependent: in the project development phase and online operation, all required dependencies npm install rely name --save
  • The project to install node_modules directory, not written package.json npm install rely name

According package.json downloading dependencies

  • The mounting npm install all dependent package.json
  • Load only project dependencies (production) npm install --production
Published 20 original articles · won praise 52 · views 20000 +

Guess you like

Origin blog.csdn.net/weixin_43745003/article/details/104943137