Sometimes I get conflicts in path and get confused between globally and locally installed npm packages.
So I need to find out what packages I installed globally.
I googled it and found out how :P (duhhh) Putting here for my reference or may be others can get too.
npm list -g --depth=0
(–depth – Max display depth of the dependency tree.)
This gives following output
/usr/local/lib ├── firstname.lastname@example.org ├── email@example.com ├── firstname.lastname@example.org ├── email@example.com └── firstname.lastname@example.org -> /Users/<username>/web-ext
Detailed list options can be found here.