解决 Error: Node Sass version 6.0.1 is incompatible with ^4.0.0.

3,155 阅读1分钟
  • $ npm run dev 提示如下错误:

    Error: Node Sass version 6.0.1 is incompatible with ^4.0.0.
    
  • 原因:node-sass 版本过高,卸载重装低版本

    1、卸载:$ npm uninstall node-sass

    2、安装:$ npm install node-sass@4.12.0

    3、运行:$ npm run dev