yarn
デプロイ時に以下のエラーが発生しますAWS
:
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=6 <7 || >=8". Got "7.0.0"
これをどう解決するか、何か考えはありますか?
エンジンを指定した場合、これは機能しますかpackage.json
:
{
"engines" : {
"node" : ">=8.0.0"
}
}
ベストアンサー1
エンジンを無視してみることもできます:
$ yarn install --ignore-engines
または
$ 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