I have an issue on my Ubuntu VM. I have tried several methods of updating to the latest Nodejs version (both LTS and Current), but running node --version
still shows v4.8.4.
I have tried using both n
and nvm
to update, as well as manually downloading and building. No matter what, v4.8.4 seems to be the only version running.
If I run which node
I get ~/.nvm/versions/node/v8.2.1/bin/node
. This looks correct, but node --version
is still v4.8.4.
How can I fix this?
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
Only this one is working the rest of the methods are not useful for the node
Thank you everyone for trying to help. The link @ScottStensland provided above (https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version) solved the issue for me. I needed a link!
sudo ln -sf ~/.nvm/versions/node/v8.5.0/bin/node /usr/bin/nodejs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With