解决Node Sass环境绑定错误问题:
error in ./src/views/course/curricula/component/Month.vue?vue&type=style&index=1&id=270797c3&scoped=true&lang=scss&
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Error: Missing binding F:\project\zhihuijiaoyu_merchant\node_modules\node-sass\vendor\win32-x64-72\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 12.x
Found bindings for the following environments:
- Windows 64-bit with Node.js 12.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
at module.exports (F:\project\zhihuijiaoyu_merchant\node_modules\node-sass\lib\binding.js:15:13)
at Object.<anonymous> (F:\project\zhihuijiaoyu_merchant\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at getDefaultSassImpl (F:\project\zhihuijiaoyu_merchant\node_modules\sass-loader\dist\index.js:198:10)
at Object.loader (F:\project\zhihuijiaoyu_merchant\node_modules\sass-loader\dist\index.js:80:29)
@ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader??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/dist/cjs.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/course/curricula/component/Month.vue?vue&type=style&index=1&id=270797c3&scoped=true&lang=scss& 4:14-511 14:3-18:5 15:22-519
@ ./src/views/course/curricula/component/Month.vue?vue&type=style&index=1&id=270797c3&scoped=true&lang=scss&
@ ./src/views/course/curricula/component/Month.vue
@ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/course/curricula/index.vue?vue&type=script&lang=js&
@ ./src/views/course/curricula/index.vue?vue&type=script&lang=js&
@ ./src/views/course/curricula/index.vue
@ ./src/router/modules/routers.js
@ ./src/store/modules/user.js
@ ./src/store/modules sync \.js$
@ ./src/store/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.30.17:9527/sockjs-node ./node_modules/@vue/cli-service/node_modules/webpack/hot/dev-server.js ./src/main.js
运行npm rebuild node-sass
以下载当前环境的绑定就行了。