LoginSignup
5
5

More than 5 years have passed since last update.

nodebrewを使ってNode.jsをインストールする

Posted at

:warning: nodebrewがインストールされている前提でのお話となります :warning:

nodebrewがインストールされているか確認する

  • nodebrewが入っているかを以下のコマンドで確認できます
check_nodebrew
nodebrew -help

nodebrewがインストールされていない場合は、コチラから、nodebrewをインストールしてから、以下を実施してください。

nodebrewを使ってNode.js(安定版)をインストールする

node.js_install
nodebrew install stable # バージョンを指定したい場合はstableをバージョン番号に変更する
  • インストールが完了したら、以下のコマンドで利用するバージョンを指定します
set_use_version
nodebrew use 0.10.29 # 利用するバージョンを指定
  • Node.js の動作確認
check_node.js
node -v

これで

v0.10.29

と出力されれば、Node.jsが使用できます :star:

5
5
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
5
5