Skip to content

Commit

Permalink
node 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang committed May 21, 2015
1 parent eb2fd34 commit 9ae2a72
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lesson0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 的各种特性都没有稳定下来,所以我们经常由于老项目或尝新的原因,需要切换各种版本。
Expand All @@ -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
```

安装完成后,查看一下
Expand All @@ -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
```

然后再次查看,这时候小箭头应该出现了。
Expand Down Expand Up @@ -97,7 +97,7 @@ export NVM_DIR="/Users/YOURUSERNAME/.nvm"

如果没有的话,执行

`$ nvm alias default 0.10`
`$ nvm alias default 0.12`


Expand Down

0 comments on commit 9ae2a72

Please sign in to comment.