简体   繁体   中英

Error when adding generator-jhipster via YARN

I ran the following command to install the generator-jhipster via yarn:

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

安装节点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/

Node.js v5:

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - sudo apt-get install -y nodejs

Node.js v6:

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs

Node.js v7::

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - sudo apt-get install -y nodejs

Node.js v8::

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs

您也可以尝试使用

yarn --ignore-engines

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM