Installing node.js on Debian 6.0

后端 未结 5 1541
野性不改
野性不改 2021-01-30 01:24

So well, I have a vserver with Debian 6.0.

Now I would like to install Node.js, but none of the tutorials on the web seem to work. I have tried all of the results google

5条回答
  •  情话喂你
    2021-01-30 01:52

    If anyone else needs step-by-step instructions, I used the following steps from Install Node.js on Debian Squeeze and it installed with no problems:

    1. sudo apt-get update && sudo apt-get install git-core curl build-essential openssl libssl-dev
    2. git clone https://github.com/nodejs/node.git
    3. cd node
    4. git checkout v5.0.0 (or the version you want to build)
    5. ./configure
    6. make
    7. sudo make install
    8. node -v
    9. npm -v

    I didn't have to install any additional sources into apt to get it to build.

提交回复
热议问题