I believe that in the past I\'ve discovered an option to pass to npm to get it to output the path it is using for -g (global modules). Does anyone
npm
-g
How about npm bin?
npm bin
It can be used with export PATH="$(npm bin):$PATH". It will find npm's bin global directory (or if exist: local).
export PATH="$(npm bin):$PATH"
npm config get prefix will return the path.
npm config get prefix