npm package management

npm full name node packsge manager (node ​​package management tools, package additions and deletions to change search)

Increase (download) npm / cnpm + install + package name

  https://www.npmjs.com/

  Because npm is abroad

  If the mirror is too slow may be mounted npm

  Input npm install -g cnpm --registry = https in the terminal: //registry.npm.taobao.org to install

  Download location: a Global Downloads : NPM / CNPM + the install + -g + package name ; partial download: npm / cnpm + install + package name (download to the current folder)

  Npm install jquery --save download package production environment (the line will be compressed)

  Npm install jquery --save-dev download package runtime environment (the upper limit will be discarded)

  Download the specified version npm / cnpm + install + + package name @ version number --save

delete

  npm uninstall package name

search for

  npm search package name

modify

  npm update package name

Guess you like

Origin www.cnblogs.com/jialaoshizaixianjiaoxue/p/10969810.html