報錯 engine "node" is incompatible with this module

sudo yarn install 時報錯

錯誤:

The engine "node" is incompatible with this module. Expected version "=> ^4.0.0".
error Found incompatible module

解決:

sudo yarn install --ignore-engines

This is also documented in the command’s help:

$ 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章