有时候运行Vue3项目,安装依赖会报各种各样的错误如:

info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
error vue-types@4.0.3: The engine "node" is incompatible with this module. Expected version ">=12.16.0". Got "12.13.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

这时候运行运行一个命令就会正常,这个命令会自动补充兼容所报的错误。

yarn config set ignore-engines true
Logo

前往低代码交流专区

更多推荐