微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

postcss@8.2.6 创建反应应用程序时不兼容

如何解决postcss@8.2.6 创建反应应用程序时不兼容

在运行 npm create-react-app app-nameyarn create-react-app app-nameyarn create react-app app-name 时,我总是收到以下错误

[2/4] Fetching packages...
error postcss@8.2.6: The engine "node" is incompatible with this module. Expected version "^10 || ^12 || >=14". Got "13.13.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts cra-template --cwd /home/path/my-app has Failed.

我已将 node 和 yarn 更新到最新版本,并尝试使用 --ignore-engine 运行 yarn。有没有办法在创建应用程序并稍后手动安装时跳过 postcss 的安装?如果没有,是否还有其他方法可以创建应用程序而不会获得此结果。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。