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

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


当前回答

 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

其他回答

这似乎是一个兼容性问题,运行

Sudo n 14

然后NPM安装或纱线安装。会有用的

windows:

步骤

进入控制面板>程序和>Node.js功能,然后卸载 登录https://nodejs.org/en/网站下载并安装。

我不得不将节点降级到v10.16.0

sudo n 10.16.0

nvm use v10.16.0

这为我解决了问题

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

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

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

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

尝试使用以下命令

//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