npm i download-npm-package code example
Example 1: install an npm package
npm install package-name
To save as a dependency:
npm install package-name --save
Example 2: download npm package
$ npm install download
npm install package-name
To save as a dependency:
npm install package-name --save
$ npm install download