npm/install

Install Package

Install a package from the registry

dependency
install

Command

npm install <package>

Explanation

Downloads and installs a package and its dependencies. Can install locally (default) or globally (-g).

Examples

Install package locally

npm install lodash

Install package globally

npm install -g typescript

Install as dev dependency

npm install --save-dev jest