From 9ae2a72fa35a5499daa3fb4c832713d6cadd2cfe Mon Sep 17 00:00:00 2001 From: alsotang Date: Thu, 21 May 2015 16:29:31 +0800 Subject: [PATCH] node 0.12 --- lesson0/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lesson0/README.md b/lesson0/README.md index 5a7b98c..03c2f19 100644 --- a/lesson0/README.md +++ b/lesson0/README.md @@ -9,7 +9,7 @@ ### 先安装一个 nvm( https://github.com/creationix/nvm ) ``` -$ curl https://raw.githubusercontent.com/creationix/nvm/v0.17.2/install.sh | bash +$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.2/install.sh | bash ``` nvm 的全称是 **Node Version Manager**,之所以需要这个工具,是因为 Node.js 的各种特性都没有稳定下来,所以我们经常由于老项目或尝新的原因,需要切换各种版本。 @@ -24,10 +24,10 @@ $ nvm ### 安装 Node.js -使用 nvm 的命令安装 Node.js 最新稳定版,现在是 `v0.10.32`。 +使用 nvm 的命令安装 Node.js 最新稳定版,现在是 `v0.12.3`。 ``` -$ nvm install 0.10 +$ nvm install 0.12 ``` 安装完成后,查看一下 @@ -44,10 +44,10 @@ $ nvm ls 那个绿色小箭头的意思就是现在正在使用的版本,我这里是 `v0.10.29`。我还安装了 `v0.11.14`,但它并非我当前使用的版本。 -如果你那里没有出现绿色小箭头的话,告诉 nvm 你要使用 `0.10.x` 版本 +如果你那里没有出现绿色小箭头的话,告诉 nvm 你要使用 `0.12.x` 版本 ``` -$ nvm use 0.10 +$ nvm use 0.12 ``` 然后再次查看,这时候小箭头应该出现了。 @@ -97,7 +97,7 @@ export NVM_DIR="/Users/YOURUSERNAME/.nvm" 如果没有的话,执行 -`$ nvm alias default 0.10` +`$ nvm alias default 0.12` 再