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 

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.