NPM

Last updated: 2020-05-03

Test what packages are globally installed with NPM:

npm list -g --depth 0

https://tinyurl.com/unjfpfn

Project Setup

Initialize a new project – setup a new package.json file:

npm init

Dependencies

# Install dependency based on package.json file:
npm install

# Install dependency
npm install package_name --save

# Install dev dependency
npm install package_name --save-dev