【问题标题】:create-react-app > error css-loader@1.0.0: The engine "node" is incompatible with this module. Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0"create-react-app > error css-loader@1.0.0: 引擎“节点”与此模块不兼容。预期版本 >= 6.9.0 <7.0.0 || >= 8.9.0"
【发布时间】:2018-10-28 00:12:39
【问题描述】:

即使我有node -v v8.2.1,我也无法npm init react-app my-appnpx create-react-app my-app。我的控制台输出:

> [1/4] ????  Resolving packages... [2/4] ????  Fetching packages... error
> css-loader@1.0.0: The engine "node" is incompatible with this module.
> Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0". error Found
> incompatible module info Visit https://yarnpkg.com/en/docs/cli/add for
> documentation about this command.

我试图删除 css-loader 或安装包的最新版本。任何帮助将不胜感激。

【问题讨论】:

    标签: node.js reactjs npm create-react-app


    【解决方案1】:

    您需要 8.9.0 以上或 6.9.0 到 7 之间的节点版本

    【讨论】:

      猜你喜欢
      • 2018-04-10
      • 1970-01-01
      • 2021-10-28
      • 2021-11-26
      • 1970-01-01
      • 2020-03-06
      • 2021-05-31
      • 2019-10-30
      相关资源
      最近更新 更多