我想把我的Node版本从最新版本降级到v6.10.3。
但到目前为止,一切都无济于事。尝试了NVM,它也给出了一个错误,说make command is not found。如何降级Node?
我想把我的Node版本从最新版本降级到v6.10.3。
但到目前为止,一切都无济于事。尝试了NVM,它也给出了一个错误,说make command is not found。如何降级Node?
当前回答
尝试使用以下命令
//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
其他回答
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”,你会得到你所切换的电流。
对于windows 10,
从“添加或删除程序”中卸载节点 从https://nodejs.org/en/安装所需的版本
为我工作。
尝试使用以下命令
//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