Last active
August 29, 2015 14:10
-
-
Save 544/8701deca195848e183bc to your computer and use it in GitHub Desktop.
nvmでnode.jsの環境をつくる。 ref: http://qiita.com/544/items/7237a32c68619236f446
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install gnu-sed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[masato@mba-18] $ source ~/.nvm/nvm.sh | |
[masato@mba-18] $ nvm --version | |
0.20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[masato@mba-18] $ nvm ls-remote | |
v0.1.14 | |
... | |
v0.11.13 | |
v0.11.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[masato@mba-18] $ node -v | |
v0.10.33 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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