npm cheatsheet

TIL: node.js shit

i’ve remained blissfully ignorant of the node ecosystem for “reasons”.

this is my personal cheatsheet of various node commands that i need to use when upgrading or finding things that i want to remove.

note to self: update as necessary.

install

npm install -g <package-name>

note: -g will install to the default system location (i.e., for everyone).

list outdated packages

npm outdated -g - lists all of the global packages which have updates.

update package(s)

npm update -g <package_name> - upgrades the associated package. omit the package name and you’ll update everything that has updates.