OS : Ubuntu 18.04
Followed these steps to install node6.x
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
But ended up installing node 8.10.0
on running this command apt policy nodejs
this is what it displays
nodejs:
Installed: (none)
Candidate: 8.10.0~dfsg-2ubuntu0.4
Version table:
8.10.0~dfsg-2ubuntu0.4 500
500 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
8.10.0~dfsg-2ubuntu0.2 500
500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
8.10.0~dfsg-2 500
500 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
6.14.1-1nodesource1 500
500 https://deb.nodesource.com/node_6.x bionic/main amd64 Packages
Is there any to install node6.x in ubuntu 18.04
I solved it by doing this
Created a file /etc/apt/preferences.d/nodesource and added below lines
Package: nodejs
Pin: origin deb.nodesource.com
Pin-Priority: 600
and installed node6.14.1
Most helpful comment
I solved it by doing this
Created a file /etc/apt/preferences.d/nodesource and added below lines
and installed node6.14.1