-
Notifications
You must be signed in to change notification settings - Fork 2
Roger Xu edited this page Apr 3, 2016
·
4 revisions
List installed packages
$ npm ls --depth 0
Search package
npm search eslint
Install package
$ npm install eslint@latest -D
Check outdated packages
$ npm outdated --depth 0
Upgrade all packages
$ npm update --depth Infinity
Uninstall package
$ npm uninstall eslint
Get cache path
$ npm config get cache
$HOME/.npm
Get cache list
$ npm cache ls
Clear cache
$ npm cache clean
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- npm install
- npm query from registry
- Download package to
~/.npm
directory - Extract package to
node_modules
directory