yarn 环境安装依赖报错解决方法(info [email protected]: The platform "win32" is incompatible with this module.)

个人分类: 前端

⚙ Installing CLI plugins. This might take a while…
yarn install v1.13.0
info No lockfile found.
[1/4] Resolving packages…
[2/4] Fetching packages…
info [email protected]: The platform “win32” is incompatible with this module.
info “[email protected]” is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies…
[4/4] Building fresh packages…
success Saved lockfile.
Done in 45.07s.
? Invoking generators…
? Installing additional dependencies…

yarn install v1.13.0
[1/4] Resolving packages…
[2/4] Fetching packages…
info [email protected]: The platform “win32” is incompatible with this module.
info “[email protected]” is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies…
[4/4] Building fresh packages…
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

解决方法
yarn config set ignore-engines true

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