orange14
orange14

Reputation: 381

Install Very Specific version of Node 4.2.6

I would like to install exactly Node4.2.6 version of Node. I am running ubuntu 16.04 and by sudo apt-get install nodejs I get later versions.

I also dont want to follow the following method because this is not recommended and can lead to errors in the future:

wget http://nodejs.org/dist/v4.2.6/node-v4.2.6.tar.gz -P /tmp/ && \
  tar xvzf /tmp/node-v4.2.6.tar.gz && cd node-v* && \
  ./configure && \
  make && \
  make test && \
  make install

I also don't want to install any version and then do

nvm install 4.2.6 
nvm use 4.2.6

All the above methods are not what I am looking for. Is there another way in ubuntu16.04 Thanks

Upvotes: 0

Views: 758

Answers (1)

brandonscript
brandonscript

Reputation: 72885

Should be pretty simple — just need to know which version of Ubuntu you're running (e.g. Trusty or Precise). For example:

curl -sO https://deb.nodesource.com/node_4.x/pool/main/n/nodejs/nodejs_4.2.6-1nodesource1~trusty1_amd64.deb
sudo apt-get install rlwrap // this is not included with the OS
sudo dpkg -i nodejs_4.2.6-1nodesource1~trusty1_amd64.deb

> Node -v
v4.2.6

Upvotes: 1

Related Questions