(See also commands for Node.js development and debugging)
- See all installed global packages:
npm ls -g --depth=0
- Update npm itself to latest version:
npm i npm -g
npm i -g light-server updtr fx npm-check npm-check-updates npm-scripts-tree
light-server
(simple web server with live reload).
Use it with a script such as:
"watch": "light-server -s . -w '* # # reload'"
updtr
(update all deps, conditional on checks passing).
Usage:
updtr --to latest -s caret -t 'npm t && whaveter && stuff'
- Either
npm-check-updates
ornpm-check
(check for unused/old deps, and optionally update them too). (built-in now)npm-merge-driver
(Git merge driver to automatically solve conflicts inpackage-lock.json
files)fx