我想把我的Node版本从最新版本降级到v6.10.3。

但到目前为止,一切都无济于事。尝试了NVM,它也给出了一个错误,说make command is not found。如何降级Node?


当前回答

Ubuntu:

nvm list
nvm use <version>

nvm list //显示你机器上的所有版本。当然要安装你自己的版本。

nvm use //使用此版本

其他回答

如果您正在使用nvm,以下是方法-

1. nvm install node_version
2. nvm use --delete-prefix node_version

想了解更多,请看这张图片

我建议使用NVS(节点版本切换器)。

你可以在这里看到源代码,你所需要的只是一个包管理器。比如Chocolatey或者Homebrew。

安装它

choco install nvs

添加版本:

nvs add v16

切换到您安装的任何版本

nvs use v16

最后,如果你“运行node -v”,你会得到你所切换的电流。

这里有一个简单的解决办法

点击这个链接,在你的电脑上下载并安装合适的nvm安装程序 https://github.com/coreybutler/nvm-windows 输入nvm list获取已安装节点的版本列表 输入nvm install <node-version> 输入nvm use <version>

这就是你想要的节点版本。

浏览这里查找节点版本=> https://nodejs.org/en/download/releases/

 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
 sudo npm install -g n
 sudo n 10.15
 npm install
 npm audit fix
 npm start

尝试使用以下命令

//For make issues 
sudo apt-get install build-essential

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash

//To uninstall a node version 
nvm uninstall <current version>

nvm install 6.10.3

nvm use 6.10.3

//check with 
node -v