In general, I would suggest letting npm give you the path and set that as mentioned above:
$ echo 'export NODE_PATH="'$(npm root -g)'"' >> ~/.bash_profile && . ~/.bash_profile
In general, I would suggest letting npm give you the path and set that as mentioned above:
$ echo 'export NODE_PATH="'$(npm root -g)'"' >> ~/.bash_profile && . ~/.bash_profile