I have tried so many solutions to install the latest version of nodes js in my system but it did not work any .Its only installing node version v5.12.0
which is not supporting vuejs
.
out put of type -a node nodejs
is
node is /usr/local/bin/node
node is /usr/bin/node
nodejs is /usr/bin/nodejs
And the output of apt-cache policy nodejs
is
nodejs:
Installed: 5.12.0-1nodesource1~xenial1
Candidate: 5.12.0-1nodesource1~xenial1
Version table:
*** 5.12.0-1nodesource1~xenial1 500
500 https://deb.nodesource.com/node_5.x xenial/main amd64 Packages
100 /var/lib/dpkg/status
4.2.6~dfsg-1ubuntu4.1 500
500 http://in.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
4.2.6~dfsg-1ubuntu4 500
500 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Any suggestions ?
5.12.0
version for me . Any suggestions ?sudo apt-get install curl && curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - && sudo apt-get install -y nodejs
sudo apt-get remove nodejs npm
removes the existing version of nodejs in Ubuntu.curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
it says## Installing the NodeSource Node.js v8.x repo...
after running this commandsudo apt-get install -y nodejs
it saysUnpacking nodejs (5.12.0-1nodesource1~xenial1) ...
. I dont understand why its getting the older version .