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

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


当前回答

对于windows用户,你们可以使用下面的命令来降级。

NPM卸载-g node

NPM install -g node@version

@version是您指定的版本,例如:12.22.3(小旧)

可以在这里找到节点版本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

在Mac中有一个快速的brew方法:

brew search node

你会看到一些版本,例如:node@10 node@12…然后

brew unlink node

现在选择以前的版本,例如node@12

brew link --overwrite --force node@12

准备,您已经降低了节点版本。

对于windows 10,

从“添加或删除程序”中卸载节点 从https://nodejs.org/en/安装所需的版本

为我工作。

windows:

步骤

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