Open a package's repository page in the browser:
npm repo <package name>
Simplify and flatten dependencies:
npm dedupe
Garbage collect unneeded data and verify contents/integrity of cache folder:
npm cache verify
Note: npm cache clean
will delete all cache data.
Install dependencies (for CI) with a clean slate:
npm ci
npm install
and npm test
in one command:
npm install-test
npm ci
and npm test
in one command:
npm install-ci-test
Check if installed packages are currently outdated:
npm outdated
Execute <command>
either from a local node_modules/.bin
(or cache), installing any packages needed in order for <command>
to run:
npx <package name> # when not installed in `node_modules`, i.e. a one-off
npx <bin name> # when installed in `node_modules`, as exposed in `package.json`