npm install instructions

A commonly used abbreviation

  • npm install= npm i. In git clone project, the project file and folder no node_modules, project dependent files can be large. Direct execution, npm will download and install configuration profiles based on package.json dependency.
  • -global= -gGlobal installed, the installation package in the system default directory
  • --save= -S, Installed inside the package will be written package.json dependencies, dependencies: production relies libraries
  • --save-dev= -D, Installed inside the package will be written packege.json devDependencies, devdependencies: only need to rely on the development environment library

 

Guess you like

Origin www.cnblogs.com/sexintercourse/p/11846272.html