Skip to content

Instantly share code, notes, and snippets.

@ewliang
Last active June 29, 2020 17:18
Show Gist options
  • Save ewliang/c77b41a70bc960f4b2f44530fe663087 to your computer and use it in GitHub Desktop.
Save ewliang/c77b41a70bc960f4b2f44530fe663087 to your computer and use it in GitHub Desktop.
Useful npm commands to know for convenience.
// List All Globally Installed NPM Packages on Operating System
npm list -g
npm list -g --depth 0
> By adding "--depth 0", you avoid printing out the globally installed packages' dependencies.
// Update NPM on Windows
npm install -g npm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment