yarn错误The engine "node" is incompatible with this module

Posted zzsdream

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yarn错误The engine "node" is incompatible with this module相关的知识,希望对你有一定的参考价值。

今天在用yarn安装vue-cli时出现了错误
../vue-hackernews-2.0> yarn
yarn install v1.12.3
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.1.3: The platform "win32" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "10.14.2"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.


进行这个设置之后,会正常。 

yarn config set ignore-engines true


但是这是什么原因那?

解析如下:

我的node.js安装包是8.2版本的,支持vue-cli 3.0版本以上需要v8.9以上

以上是关于yarn错误The engine "node" is incompatible with this module的主要内容,如果未能解决你的问题,请参考以下文章

Google App Engine The url "/" does not match any handlers 错误

如何解决这个错误 jest-worker@27.0.0-next.5:The engine "node" is in compatible with this module

yarn出现“There are no scenarios ; must have at least one"

ERROR ITMS-90167: "No .app bundles found in the package"错误

The view or its master was not found or no view engine supports the searched locations

yarn出现“There are no scenarios ; must have at least one"