I am having a problem installing global node modules and everything I find online says the solve is just adding -g. Which is not the problem. I believe it\'s a linking issue
The problem I had was missing the binaries because the user specific .npmrc file in my home directory had bin-links
set to false
, though the default is true
.
Just in case this is your problem check that none of your .npmrc files have it set to false.
Then re-installing all modules will create the binaries at the prefix
so your PATH
can see them.
Add the following line to your ~/.bash_profile
export PATH="$HOME/.npm/bin:$PATH"
Load bash profile
bash -l
For Windows users
Add this to your path: "%AppData%\npm"