linux - Global npm installs break after restarting terminal -


i installed node using nvm , had no problems installing globally packages npm. found if close terminal in installed package, "command not found" when attempting use it.

for example, browser-sync. closed terminal after finding worked properly. when opened later continue working on project need for, turns out "command not found" in every directory despite installing globally.

i running linux mint cinammon 17.3 latest version of node , npm.

any this?

i've since solved problem by:

  1. completely uninstalling nvm , node.
  2. reinstalling node using apt-get
  3. changing npm config prefix /usr/local
  4. correctly setting npm permissions

for reason despite multiple uninstalls/reinstalls , playing permissions before, wouldn't work until deleted folders created node or npm before reinstallment. weird.


Comments