List globally installed NPM packages
25 May 2022 (Updated 12 July 2022)
npm ls -g --depth=0
Example output:
/Users/sajad/.nvm/versions/node/v16.14.0/lib
├── @vue/cli@5.0.4
├── alfred-npms@3.0.0
├── alfred-vscode@2.1.0
├── corepack@0.10.0
├── db-migrate@0.11.13
├── gulp-cli@2.3.0
├── knex@1.0.4
├── npm@8.3.1
└── ts-node@10.7.0
Bonus: bash alias
alias npmlsg="npm ls -g --depth=0"
Tagged:
NPM
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment