install an npm package

Shell
npm install package-name

To save as a dependency:
npm install package-name --save
Source

Also in Shell: