Skip to content

List Globally Installed NPM Libraries

View on Twitter

💡 Want to list all the NPM libraries that are installed globally?

➡️ npm ls -g --depth=0

Or add an alias in ~/.bash_profile (bash) or ~/.zshrc (zsh): alias npmlsg='npm ls -g --depth=0'
➡️ npmlsg

You might also like
Measure Execution Time With console.time Read tip
Secure Your VPS: Use Non-Root User Read tip
Support ESM and CommonJS Uses of Your Library Read tip