部署到 AWS 时出现以下纱线错误
error [email protected] /cdn-cgi/l/email-protection: The engine "node" is incompatible with this module. Expected version ">=6 <7 || >=8". Got "7.0.0"
知道如何解决这个问题吗?
如果我在 package.json 中指定引擎,这会起作用吗
{
"engines" : {
"node" : ">=8.0.0"
}
}
您可以尝试忽略引擎:
$ yarn install --ignore-engines
OR
$ yarn global add <your app> --ignore-engines
您可以通过运行以下命令来查看所有可以忽略的内容:
$ 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)