- ここの内容を参考にしました。https://github.com/joyent/node/wiki/Installation
- 以下のコマンドを実行する。
sudo apt-get install git-core sudo apt-get install python sudo apt-get install libssl-dev sudo apt-get install curl
- 他にもあるかもしれない。その時はインストール方法を教えてくれるので従う。
- 以下のコマンドを実行する。
cd ~ git clone --depth 1 git://github.com/joyent/node.git cd node git checkout origin/v0.4 export JOBS=2 mkdir ~/local ./configure --prefix=$HOME/local/node make make install echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile source ~/.profile
- インストール確認
node --version
- バージョン番号が表示されればOK
このページへのコメント
5u4y81 Thanks again for the article.Really thank you! Awesome.