I have found myself constantly asking, “Okay, so what npm packages do I have globally installed on this machine again? And what version are they?”.

So, instead of Goggling for the answer each and every time. I’m going to put it here. For my own convenience and maybe it will be useful for someone else.

npm list -g --depth=0

The result will look something like this:

├── bower@1.2.5
├── generator-angular@0.4.0
├── generator-karma@0.5.0
├── grunt-cli@0.1.9
├── jake@0.5.18
├── jshint@0.9.1
├── karma@0.8.7
├── nodeunit@0.7.4
└── yo@1.0.4