我在Ubuntu 10.10上运行Node.js v0.5.9-pre版本。

我希望使用v0.5.0-pre版本。

如何回滚到节点的旧版本?


当前回答

我发现最简单的方法是

卸载当前版本 从https://nodejs.org/download/release/下载相应版本的。msi安装程序(x64或x86)

其他回答

我发现最简单的方法是

卸载当前版本 从https://nodejs.org/download/release/下载相应版本的。msi安装程序(x64或x86)

另一个用于管理多个版本Node的很好的库是N: https://github.com/visionmedia/n

窗户

用巧克力降级节点

安装巧克力色。然后运行:

choco install nodejs.install -version 6.3.0

Chocolatey拥有许多可用的Node版本。

Downgrade NPM

npm install -g npm@3.10.3

NIX (Linux, OS X, ...)

使用n,一个非常简单的Node版本管理器,可以通过npm安装。

假设你想要Node.js v0.10。x来构建Atom。

npm install -g n   # Install n globally
n 0.10.33          # Install and use v0.10.33
Usage:
n                            # Output versions installed
n latest                     # Install or activate the latest node release
n stable                     # Install or activate the latest stable node release
n <version>                  # Install node <version>
n use <version> [args ...]   # Execute node <version> with [args ...]
n bin <version>              # Output bin path for <version>
n rm <version ...>           # Remove the given version(s)
n --latest                   # Output the latest node version available
n --stable                   # Output the latest stable node version available
n ls                         # Output the versions of node available

 

窗户

使用nvm- Windows,它类似于nvm,但适用于Windows。下载并运行安装程序,然后:

nvm install v0.10.33         # Install v0.10.33
nvm use v0.10.33             # Use v0.10.33
Usage:
nvm install [version]        # Download and install [version]
nvm uninstall [version]      # Uninstall [version]
nvm use [version]            # Switch to use [version]
nvm list                     # List installed versions

如果你已经为我安装了curl,请按照以下步骤操作

Sudo snap remove curl Sudo apt安装卷曲 NVM安装12.2.0