Module build failed (from ./node_modules/[email protected]@sass-loader/lib/loader.js): Error: Node

Module build failed (from ./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js):
Error: Node Sass version 6.0.1 is incompatible with ^4.0.0.
    at getRenderFuncFromSassImpl (/Users/apple/Desktop/vue/hotspot_admin/node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js:108:19)
    at Object.sassLoader (/Users/apple/Desktop/vue/hotspot_admin/node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js:46:20)

 @ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/disabledVideo/List.vue?vue&type=style&index=0&id=e8a203f0&scoped=true&lang=scss& 4:14-498 14:3-18:5 15:22-506
 @ ./src/views/disabledVideo/List.vue?vue&type=style&index=0&id=e8a203f0&scoped=true&lang=scss&
 @ ./src/views/disabledVideo/List.vue
 @ ./src/config/componentConfigs.js
 @ ./src/store/modules/permission.js
 @ ./src/store/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://172.16.10.13:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

 error  in ./src/views/video/Info.vue?vue&type=style&index=0&id=60a84e7c&scoped=true&lang=scss&

Module build failed (from ./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js):
Error: Node Sass version 6.0.1 is incompatible with ^4.0.0.
    at getRenderFuncFromSassImpl (/Users/apple/Desktop/vue/hotspot_admin/node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js:108:19)
    at Object.sassLoader (/Users/apple/Desktop/vue/hotspot_admin/node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js:46:20)

 @ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/_sass-loader@7.1.0@sass-loader/lib/loader.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/video/Info.vue?vue&type=style&index=0&id=60a84e7c&scoped=true&lang=scss& 4:14-498 14:3-18:5 15:22-506
 @ ./src/views/video/Info.vue?vue&type=style&index=0&id=60a84e7c&scoped=true&lang=scss&

原因:

node node-sass sass-loader 版本不匹配

解决:

cnpm install sass-loader@7.0.3

你可能感兴趣的:(node,javascript,sass,vue.js)