joshua laver
joshua laver

Reputation: 23

Node vs Nodejs version

I'm trying to update node to version 7 but it is staying at v5.

enter image description here

Upvotes: 1

Views: 3107

Answers (1)

Seiji Hirao
Seiji Hirao

Reputation: 311

You are probably with the same problem as him: link

If you run which node and which nodejs on your terminal you should get 2 different paths.

And, if this is the case, you can remove one of your node apps and symlink the other.

$ sudo apt-get remove nodejs
$ sudo ln -s /usr/bin/node /usr/bin/nodejs

It's explained in the first answer on the link above what is happening.

Upvotes: 4

Related Questions