0

I am running ubuntu 18.04.1 LTS and I need to run node v6. I am following this tutorial

curl -sL https://deb.nodesource.com/setup_6.x | bash -

# Install Node.js and npm
apt-get install -y nodejs

I can see in the apt-get output

Hit:4 https://deb.nodesource.com/node_6.x bionic InRelease

before installing:

node -v
-su: /usr/bin/node: No such file or directory

after apt-get install -y nodejs

$ node -v
v8.10.0

but for some reason it installs node v8

How can I install v6?

0

1 Answer 1

1

thanks to karel

this worked

apt-get remove nodejs
snap install node --classic --channel 6/stable
0

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