Reputation: 13763
I am starting to learn Nodejs and tried to install it.
Now, when I do node -v
I get v4.4.4
and when I do nodejs -v
, I get v0.10.45
which node
gives /usr/local/bin/node
, which nodejs
gives /usr/bin/nodejs
I need v4.4.4
. Because of those different results I am not sure to start.
What can I do?
Upvotes: 0
Views: 176
Reputation: 2616
I recommend installing NVM (node version manager). It makes dealing with multiple node version installations really nice. Digital Ocean has a good tutorial on doing that here:
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
Once you've installed NVM you can likely remove your other node versions and all of your programs that use node will default to whatever version you set as the default with nvm.
Upvotes: 2