码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-05-16 16:23:35      阅读:452      评论:0      收藏:0      [点我收藏+]

标签:nta   expected   ble   版本   check   ali   yarn安装   tps   for   

今天在用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

标签:nta   expected   ble   版本   check   ali   yarn安装   tps   for   

原文地址:https://www.cnblogs.com/zzsdream/p/12900956.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!