Thursday, December 1, 2016

NODE - NPM

Node Doc

Installation:
Head to the Node.js download page and grab the version you need. There are Windows and Mac installers available, as well as pre-compiled Linux binaries and source code. For Linux, you can also install Node via the package manager, as is outlined here.
open command prompt ,check version installed
node -v
npm -v

Basic npm command -
npm init => initializes package.json
npm list -g  => list all global npm packages installed
npm list => list all npm packages installed
npm install <package-name> => install package to local
npm install -g <package-name> => install package globally on the system
npm update <package-name> => updates packages name

No comments:

Post a Comment