Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6015

Why is node not available to all users with NVM?

$
0
0

It's probably a newbie question but I'm wondering why when I install node with nvm, it is only available for this user (it's not "global").

Let's say I'm logged into the server with a user "admin":

curl https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh | shsource ~/.profilenvm install 0.10.30nvm use 0.10.30node -v# outputs v0.10.30

Node is up and running for this user but when I switch to the root:

sunode -v

It displays:

The program 'node' can be found in the following packages: * node * nodejs-legacyTry: apt-get install <selected package>

Why is that? Is there a way to install node and make it available to all users? (I don't want to reinstall every time I need it for a new user.)


Viewing all articles
Browse latest Browse all 6015

Trending Articles