npm

javascript package manager

TLDR

Interactively create a package.json file

$ npm init
copy


Download all the packages listed as dependencies in package.json
$ npm install
copy


Download a specific version of a package and add it to the list of dependencies in package.json
$ npm install [module_name]@[version]
copy


Download a package and add it to the list of dev dependencies in package.json
$ npm install [module_name] --save-dev
copy


Download a package and install it globally
$ npm install --global [module_name]
copy


Uninstall a package and remove it from the list of dependencies in package.json
$ npm uninstall [module_name]
copy


Print a tree of locally installed dependencies
$ npm list
copy


List top-level globally installed modules
$ npm list --global --depth=[0]
copy

Copied to clipboard