当前位置: 代码迷 >> 综合 >> Error Node Sass does not yet support your current environment Windows 64-bit with Unsupported解决方案总结
  详细解决方案

Error Node Sass does not yet support your current environment Windows 64-bit with Unsupported解决方案总结

热度:49   发布时间:2023-10-21 00:16:32.0

"Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime"解决方案总结

需求描述:
  • 最近在运行vue项目时遇到了以下问题:

  • error  in ./src/views/xxxx/xxxx.vue?vue&type=style&index=0&id=52b47b4f&lang=scss&scoped=true&Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
    ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
    Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (83)
解决方案:
  • 上面问题是由于node-sass插件(此时我本地的版本是4.9.0)版本过高而与sass-loader(此时我本地的版本是7.3.1)不匹配导致的,执行以下命令即可解决:

  • npm install -S node-sass@4.14.1
    
  相关解决方案