Skip to content

Instantly share code, notes, and snippets.

@544
Last active August 29, 2015 14:10
Show Gist options
  • Save 544/8701deca195848e183bc to your computer and use it in GitHub Desktop.
Save 544/8701deca195848e183bc to your computer and use it in GitHub Desktop.
nvmでnode.jsの環境をつくる。 ref: http://qiita.com/544/items/7237a32c68619236f446
[masato@mba] $ git clone git://github.com/creationix/nvm.git ~/.nvm
Cloning into '~/.nvm'...
remote: Counting objects: 2707, done.
remote: Total 2707 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2707/2707), 514.38 KiB | 232.00 KiB/s, done.
Resolving deltas: 100% (1476/1476), done.
Checking connectivity... done.
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
brew install gnu-sed
[masato@mba-18] $ source ~/.nvm/nvm.sh
[masato@mba-18] $ nvm --version
0.20.0
[masato@mba-18] $ nvm ls-remote
v0.1.14
...
v0.11.13
v0.11.14
[masato@mba-18] $ nvm install v0.10
######################################################################## 100.0%
perl: VERSIONER_PERL_VERSION environment variable error (ignored)
Now using node v0.10.33
[masato@mba-18] $ nvm use v0.10
Now using node v0.10.33
[masato@mba-18] $
[masato@mba-18] $ node -v
v0.10.33
[masato@mba-18] $ nvm ls
-> v0.10.33
v0.11.14
system
stable -> 0.10 (-> v0.10.33) (default)
unstable -> 0.11 (-> v0.11.14) (default)
[masato@mba-18] $
[masato@mba-18] $ nvm alias default v0.10
default -> v0.10 (-> v0.10.33)
[masato@mba-18] $ nvm ls
-> v0.10.33
v0.11.14
system
default -> v0.10 (-> v0.10.33)
stable -> 0.10 (-> v0.10.33) (default)
unstable -> 0.11 (-> v0.11.14) (default)
[masato@mba-18] $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment