vue启动报错!Module build failed: Error: Missing binding D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node

报错信息如下:
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
    at module.exports (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\lib\binding.js:15:13)
    at Object. (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\sass-loader\lib\loader.js:3:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at loadLoader (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\loadLoader.js:13:17)
    at iteratePitchingLoaders (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
    at iteratePitchingLoaders (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
    at D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:173:18
    at loadLoader (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\loadLoader.js:36:3)


 @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":false}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-2edda286","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/views/layout/components/TagsView.vue 4:14-411 13:3-17:5 14:22-419
 @ ./src/views/layout/components/TagsView.vue
 @ ./src/views ^\.\/.*\.vue$
 @ ./src/router/_import_development.js
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://localhost:8888 webpack/hot/dev-server babel-polyfill ./src/main.js


 error  in ./src/components/ScrollBar/index.vue


Module build failed: Error: Missing binding D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x


Found bindings for the following environments:
  - Windows 64-bit with Node.js 8.x


This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
    at module.exports (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\lib\binding.js:15:13)
    at Object. (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\sass-loader\lib\loader.js:3:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at loadLoader (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\loadLoader.js:13:17)
    at iteratePitchingLoaders (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
    at iteratePitchingLoaders (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
    at D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:173:18
    at loadLoader (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\loadLoader.js:36:3)


 @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":false}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-0174fcc8","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/components/ScrollBar/index.vue 4:14-396 13:3-17:5 14:22-404
 @ ./src/components/ScrollBar/index.vue
 @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/layout/components/Sidebar/index.vue
 @ ./src/views/layout/components/Sidebar/index.vue
 @ ./src/views ^\.\/.*\.vue$
 @ ./src/router/_import_development.js
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://localhost:8888 webpack/hot/dev-server babel-polyfill ./src/main.js


 error  in ./src/components/Breadcrumb/index.vue


Module build failed: Error: Missing binding D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x


Found bindings for the following environments:
  - Windows 64-bit with Node.js 8.x


This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
    at module.exports (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\lib\binding.js:15:13)
    at Object. (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\sass-loader\lib\loader.js:3:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at loadLoader (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\loadLoader.js:13:17)
    at iteratePitchingLoaders (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
    at iteratePitchingLoaders (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
    at D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:173:18
    at loadLoader (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\loadLoader.js:36:3)


 @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":false}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-84806d6e","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/components/Breadcrumb/index.vue 4:14-396 13:3-17:5 14:22-404
 @ ./src/components/Breadcrumb/index.vue
 @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0&bustCache!./src/views/layout/components/Navbar.vue
 @ ./src/views/layout/components/Navbar.vue
 @ ./src/views ^\.\/.*\.vue$
 @ ./src/router/_import_development.js
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://localhost:8888 webpack/hot/dev-server babel-polyfill ./src/main.js


 error  in ./src/views/login/index.vue


Module build failed: Error: Missing binding D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\vendor\win32-x64-48\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 6.x


Found bindings for the following environments:
  - Windows 64-bit with Node.js 8.x


This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
    at module.exports (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\lib\binding.js:15:13)
    at Object. (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\sass-loader\lib\loader.js:3:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at loadLoader (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\loadLoader.js:13:17)
    at iteratePitchingLoaders (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
    at iteratePitchingLoaders (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
    at D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\LoaderRunner.js:173:18
    at loadLoader (D:\WorkSpace\vue\OfficeSuite\OfficeFrontend\node_modules\loader-runner\lib\loadLoader.js:36:3)


 @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":false}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-211ec51b","scoped":false,"hasInlineConfig":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/views/login/index.vue 4:14-397 13:3-17:5 14:22-405
 @ ./src/views/login/index.vue
 @ ./src/views ^\.\/.*\.vue$
 @ ./src/router/_import_development.js
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://localhost:8888 webpack/hot/dev-server babel-polyfill ./src/main.js
注意这个提示要我们重新安装node-sass,

This usually happens because your environment has changed since running `npm install`.

Run `npm rebuild node-sass --force` to build the binding for your current environment.

使用cnpm安装即可。

cnpm rebuild node-sass --force









你可能感兴趣的:(vue)