npm cheatsheet
Here are some npm (node package manager) commands that I’ve found useful.
Listing installed packages
The full global list is often way more info than you really want, so it can be helpful to limit it to root-level packages (e.g. installed via npm i -g <package>
) using the --depth-0
flag.
You can also list the root-level packages that have been installed via npm link
rather than npm i
with the --link=true
flag.