Created: 2017 May 19th
Updated: 2019 March 1st
A list of terminal commands and flags to help me use npm
Shorthand
-S
is the same as --save
not needed in npm 5+ -D
is the same as
--save-dev
After trying several times to upgrade npm on Windows I found this whilst poking around.
To update global packages individually you can use:
To see which packages need updating use:
rm -rf node_modules; npm install
Instead use:
It will have the same effect but be 2-3x faster ๐