npm
npm
install
- mostly install it with nodejs
- brew
- zip
update
1 | npm install -g npm |
package
1 | // install package |
update
default native
1
npm update [-g] [${pacakge_name}]
-
1
2
3npm-check
// use gui to update
npm-check -u -
1
ncu
- Red = major upgrade (and all major version zero)
- Cyan = minor upgrade
- Green = patch upgrade
remove useless packages
1 | npm prune [${pacakge_name}] |