sajad torkamani
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

Leave a comment

Your email address will not be published. Required fields are marked *