-1

I recently had nodejs v6.0.0 installed. I ran sudo apt-get remove nodejs and reinstalled the LTS version using curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs

After reinstalling I ran sudo rm /usr/bin/node

And re-created the symbolic link using sudo ln -sv /usr/bin/nodejs /usr/bin/node

Now running either with the --version parameter shows different versions... Thanks ahead of time for any assistance!

1

2 Answers 2

1

Are you saying that /usr/bin/nodejs --version and /usr/bin/node are showing different versions?

My first thought is to check with which APP_NAME to check that no other executable is in the path, maybe some standalone version, maybe from outside the package manager, is running instead.

1
  • Just seen your answer - probably was the $PATH not cleaning up! Apr 27, 2016 at 16:11
-1

Server reboot solved the issue! Should've tried this first.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .