you just need to add /usr/local/share/npm/bin
to your path.
Try adding the following line to your bash profile (in ~/.profile
, or ~/.bashrc
, etc.):
PATH=$PATH:/usr/local/share/npm/bin
Then source the file to your current environment with . ~/.profile
. And that should fix your issue.
Going forward, I would recommend using nvm
to manage your node versions, and npm installs.