"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