Note that in order to install packages, you must have NPM installed.
The recommended way to install NPM is to use one of the installers from the Node.js
download page. You can check to see if you already have node.js installed by running
either the npm -v
or the npm version command.After installing NPM via the Node.js
installer, be sure to check for updates. This is because NPM gets updated more
frequently than the Node.js installer. To check for updates run the following command:
npm install npm@latest -g
npm install <package-name>
npm i <package-name>
npm install lodash express
npm install [email protected]
npm install lodash@">=4.10.1 <4.11.1"
npm install <name>@latest
npm install --registry=http://myreg.mycompany.com <package name>
npm install --save <name>
Install dependenciesnpm install -S <name>
shortcut version --savenpm install --save-dev <name>
Install dependencies for development purposesnpm install -D <name>
shortcut version --save-dev
npm install --global <name>
npm install -g <name>
npm i -g <name>
npm install -g grunt-cli
npm list
npm list <name>