npm not found when under sudo
[dev@squarepants www]$ sudo npm install -g bbb
sudo: npm: command not found
You have probably like me installed node with nvm (node version manager). This installs node locally for the user and root won't have it.
The solution is simply not use "sudo".
You can always install the latest version of nvm by following the instructions at