Mar*_*rco 16
我用中殿.https://github.com/isaacs/nave
> npm install -g nave
> nave use 0.4.12 # starts a subshell with 0.4.12 at the head of the path
> node --version
v0.4.12
> exit # go back to the original shell
> nave use 0.6.5
> node --version
v0.6.5
> nave usemain
Run Code Online (Sandbox Code Playgroud)
请注意,第一次需要版本时,将为您下载并编译版本.
如果您需要简单的东西, n工具实用程序仅适合您。
安装它(sudo如果需要,在命令中使用前缀):
npm -g install n
Run Code Online (Sandbox Code Playgroud)
然后 :
npm cache clean -f
Run Code Online (Sandbox Code Playgroud)
(不要害怕警告)
然后仅要求n(如果需要,请下载并)使用您指定的版本。例如:
n 0.11.13
Run Code Online (Sandbox Code Playgroud)
等等!
如果您安装了多个版本,则可以在它们之间进行切换。有关详细信息,请参见n页。
| 归档时间: |
|
| 查看次数: |
24208 次 |
| 最近记录: |