18
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NodeJSの導入(CentOS7

Posted at

NodeJSの導入

要件

  • CentOS7

NVMの導入

nvmをくろーん

$ git clone git://github.com/creationix/nvm.git ~/.nvm

.bashrcに、nvmを登録

$ echo . ~/.nvm/nvm.sh >> ~/.bashrc

.bashrc再読み込み

$ . ~/.bashrc

入ってるか確認

$ nvm --version
0.26.0

nodeのインストール

インストール出来るバージョンのリスト

$ nvm ls-remote
v0.1.14
...
iojs-v3.1.0

今回は、stableを入れる

$ nvm install stable
######################################################################## 100.0%
Now using node v0.12.7 (npm v2.11.3)

バージョン確認

$ node -v
v0.12.7
$ npm -v
2.11.3
18
18
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
18
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?