How to install a specific version of Node on Ubuntu?

前端 未结 14 701
Happy的楠姐
Happy的楠姐 2020-12-07 12:52

I would like to install NodeJS version 0.8.18 on Ubuntu 12.04. I tried to install the newest version and then reverting to 0.8.18 by using nvm, but when I run m

14条回答
  •  一生所求
    2020-12-07 13:24

    Try this way. This worked me.

    1. wget nodejs.org/dist/v0.10.36/node-v0.10.36-linux-x64.tar.gz(download file)

    2. Go to the directory where the Node.js binary was downloaded to, and then run command i.e, sudo tar -C /usr/local --strip-components 1 -xzf node-v0.10.36-linux-x64.tar.gz to install the Node.js binary package in “/usr/local/”.

    3. You can check:-

      $ node -v
       v0.10.36 
      $ npm -v
       1.4.28
      

提交回复
热议问题