报错 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

你可能感兴趣的:(前端之路)