如何在Windows上安装旧版本的node.js?

我需要安装版本4.0.0的node.js我试过这个:

npm install -g npm@4.0.0 

但是我得到这个消息:npm不被识别为内部或外部命令,可操作的程序或batch file

去这里find你想要安装的版本,然后下载正确的msi文件并运行安装程序。 你不能通过运行这个命令来安装节点,你收到的错误是说npm不在你的path上,这表明机器目前没有安装节点

你可以使用Nodist来达到这个目的。 从这里下载。

用法:

 nodist List all installed node versions. nodist list nodist ls nodist <version> Use the specified node version globally (downloads the executable, if necessary). nodist latest Use the latest available node version globally (downloads the executable, if necessary). nodist add <version> Download the specified node version. 

更多的Nodist命令在这里