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
Synchronous Container Startup in Docker Compose Read tip
Restrict SSH Key to Specific Commands Read tip
Use Sudo Without Password Prompt in Scripts Read tip