我想把我的Node版本从最新版本降级到v6.10.3。
但到目前为止,一切都无济于事。尝试了NVM,它也给出了一个错误,说make command is not found。如何降级Node?
我想把我的Node版本从最新版本降级到v6.10.3。
但到目前为止,一切都无济于事。尝试了NVM,它也给出了一个错误,说make command is not found。如何降级Node?
当前回答
windows:
步骤
进入控制面板>程序和>Node.js功能,然后卸载 登录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
确定Node版本
node -v // or node --version
npm -v // npm version or long npm --version
确保已安装n个
sudo npm install -g n // -g for global installation
升级到最新的稳定版本
sudo n stable
更改到特定版本
sudo n 10.16.0
回答这篇文章的启发。
对于windows 10,
从“添加或删除程序”中卸载节点 从https://nodejs.org/en/安装所需的版本
为我工作。
Ubuntu:
nvm list
nvm use <version>
nvm list //显示你机器上的所有版本。当然要安装你自己的版本。
nvm use //使用此版本
我不得不将节点降级到v10.16.0
sudo n 10.16.0
nvm use v10.16.0
这为我解决了问题