【问题标题】:Error: Node Sass version 8.0.0 is incompatible with ^4.0.0错误:Node Sass 版本 8.0.0 与 ^4.0.0 不兼容
【发布时间】:2022-12-19 15:39:27
【问题描述】:

当我使用 npm start 启动 React 应用程序时,出现此错误。如何修复此错误?

./src/App.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5
-3!./node_modules/react-scripts/node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/App.scss)
Error: Node Sass version 8.0.0 is incompatible with ^4.0.0.

Here is the screenshot of error

【问题讨论】:

  • 你试过更新你所有的包裹吗?

标签: javascript node.js reactjs npm node-sass


【解决方案1】:
  1. npm uninstall node-sass
  2. npm install sass

【讨论】:

    猜你喜欢
    • 2022-12-14
    • 2021-02-13
    • 2022-06-24
    • 2022-06-25
    • 2021-11-18
    • 2022-01-22
    • 2023-03-12
    • 2021-10-12
    • 2021-08-25
    相关资源
    最近更新 更多