[英]Error when adding generator-jhipster via YARN
I ran the following command to install the generator-jhipster via yarn: 我运行以下命令以通过yarn安装generator-jhipster:
yarn global add generator-jhipster
After doing so, I ran into the following issue: 这样做之后,我遇到了以下问题:
The engine "node" is incompatible with this module. Expected version ">=6.9.5"
Any clue as to how I can get around this issue? 关于如何解决此问题的任何线索?
TIA TIA
安装节点6.9.5或更高版本。
Update node to the latest version. 将节点更新为最新版本。
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Once your install is complete, you can confirm you version with another command: 安装完成后,可以使用另一个命令确认版本:
node -v
To Download latest node 下载最新节点
https://nodejs.org/en/download/package-manager/ https://nodejs.org/en/download/package-manager/
Node.js v5: Node.js v5:
curl -sL https://deb.nodesource.com/setup_5.x | curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - sudo apt-get install -y nodejs
sudo -E bash-sudo apt-get安装-y nodejs
Node.js v6: Node.js v6:
curl -sL https://deb.nodesource.com/setup_6.x | curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs
sudo -E bash-sudo apt-get安装-y nodejs
Node.js v7:: Node.js v7 ::
curl -sL https://deb.nodesource.com/setup_7.x | curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install -y nodejs
sudo -E bash-sudo apt-get安装-y nodejs
Node.js v8:: Node.js v8 ::
curl -sL https://deb.nodesource.com/setup_8.x | curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs
sudo -E bash-sudo apt-get安装-y nodejs
您也可以尝试使用
yarn --ignore-engines
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.