ASP.NET Core MVC 2.0 Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

  1. To run scripts, enter the following:
npm run [nameofthescriptwithextension] 
  1. To install packages, enter the following:
npm install [nameofthepackage] 
  1. To install packages and save the dependency in package.json, enter the following:
npm i [nameofthepackage] -S 
  1. To list all the node packages installed on your computer, enter the following:
npm list -global true

//Or
npm ls
  1. To install a package for global use, add -g at the end:
npm install gulp -g 
  1. To upgrade npm, enter the following:
npm I npm@latest -g