npm install, uninstall command module or package (reproduced)

npm install uninstall command

Source: https: //www.jianshu.com/p/e6ee00ea03cd

npm install module

  • [Npm npm installed using the install] xxx xxx module to the current command line directory;

  • [Npm install xxx -g] Using global module mounted npm XXX;

  • [Npm install xxx] installed but does not write package.json;

  • [Npm install xxx -save] package.json installed and writes the "dependencies" in;

  • [Npm install xxx -save-dev] package.json installed and writes the "devDependencies" in.

npm delete module

  • [Npm uninstall xxx xxx] delete module;
  • [Npm uninstall -g xxx] remove the global module xxx;

 

Guess you like

Origin www.cnblogs.com/hao-1234-1234/p/11493372.html
Recommended