-
Run an offline verification of existing cache contents
npm cache verify
Run cache clear for saving disk space purpose
npm cache clean --force
-
Run cmd to remove files
rm -rf node_modules && npm i
-
Run cmd to rebuild
node-sass
; often needed after removing, updating major changes to packagesnpm rebuild node-sass
-
Run cmd to figure out what the heck is going on with globaly installed packages when seeing warnings/etc
npm list -g --depth 0`
-
Run cmd to view package versions; often needed after Greenkeeper issues
npm show <package>@* version # in example npm show glob@* version
-
Run cmd when a cmd is being typed but the executor (a human typing in a shell) forgets the rest or the cmd or does not know the rest of the cmd
npm <cmd> --help # in example npm run --help # joke intended
Last active
December 21, 2022 19:37
-
-
Save yowainwright/e49bcbd66030e3f2c8ec104a0510f1ec to your computer and use it in GitHub Desktop.
NPM clutch cmds ✇
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment