LoginSignup
2
2

More than 5 years have passed since last update.

CentOS への Node.js インストールメモ

Posted at

CentOS (Bash) にて。

nvm 導入

$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ echo "source ~/.nvm/nvm.sh" >> ~/.bashrc
$ source ~/.bashrc
$ nvm --version
0.32.1

node バージョンリスト確認

$ nvm ls-remote
        v0.1.14
        v0.1.15
        v0.1.16
        ....
         v4.6.0   (LTS: Argon)
         v4.6.1   (Latest LTS: Argon)
         v5.0.0
        ....
         v6.8.1
         v6.9.0   (LTS: Boron)
         v6.9.1   (Latest LTS: Boron)

node インストール (stable なバージョン)

$ nvm install stable
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v6.9.1 (npm v3.10.8)
Creating default alias: default -> stable (-> v6.9.1)

$ node -v
v6.9.1
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2