LoginSignup
4
4

More than 5 years have passed since last update.

Node.jsを使ってみる

Last updated at Posted at 2015-04-08

環境

  • Mac OS X Yosemite 10.10.2
  • nodebrew 0.8.0
  • node v0.12.2
  • npm 2.7.4

準備

nodebrewをインストール

nodebrewはnodeのバージョン管理ツール。
これが一番いけてるっぽい。

$ brew update
$ brew install nodebrew

最新版のnodeをインストール

$ nodebrew install latest

インストールされたバージョンを確認する。

$ nodebrew list
v0.12.2

current: none

バージョンの有効化

$ nodebrew use v0.12.2

パスを通す

.zshenvに以下を追加。

export PATH=$HOME/.nodebrew/current/bin:$PATH

参考

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