引擎“节点"与此模块不兼容 [英] The engine "node" is incompatible with this module

查看:15
本文介绍了引擎“节点"与此模块不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在部署到 AWS 时遇到了纱线错误

I am getting below yarn error when deploying to AWS

error fs-extra@7.0.1: The engine "node" is incompatible with this module. Expected version ">=6 <7 || >=8". Got "7.0.0"

知道如何解决这个问题吗?

Any idea how will this be resolved?

如果我在 package.json 中指定引擎,这会成功吗

Will this work out if I specify engine in package.json

{ 
  "engines" : { 
    "node" : ">=8.0.0" 
  }
}

推荐答案

您可以尝试忽略引擎:

$ yarn install --ignore-engines

$ yarn global add <你的应用>--ignore-engines

您可以通过运行查看所有可以忽略的内容:

You can see all what you can ignore by running:

$ yarn help | grep -- --ignore

--ignore-scripts     don't run lifecycle scripts
--ignore-platform    ignore platform checks
--ignore-engines     ignore engines check
--ignore-optional    ignore optional dependencies

这篇关于引擎“节点"与此模块不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆