npm Command Examples

JavaScript and Node.js package manager. Manage Node.js projects and their module dependencies. More information: https://www.npmjs.com.

npm init {{[-y|--yes]}}

npm install

npm install {{package_name}}@{{version}}

npm install {{package_name}} {{[-D|--save-dev]}}

npm install {{[-g|--global]}} {{package_name}}

npm uninstall {{package_name}}

npm list

npm list {{[-g|--global]}} --depth {{0}}