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 (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
└── email@example.com -> /Users/<username>/web-ext
Detailed list options can be found here.