Module build failed:Error:Cannot find module'node-sass'エラーメッセージ

3838 ワード

Module build failed: Error: Cannot find module 'node-sass'
Require stack:
- G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\sass-loader\lib\loader.js - G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\loader-runner\lib\loadLoader.js - G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\loader-runner\lib\LoaderRunner.js - G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\webpack\lib\NormalModule.js - G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\webpack\lib\NormalModuleFactory.js - G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\webpack\lib\Compiler.js - G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\webpack\lib\webpack.js - G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\webpack-dev-server\lib\Server.js - G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\webpack-dev-server\bin\webpack-dev-server.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Module._load (internal/modules/cjs/loader.js:841:27) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at Object. (G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\sass-loader\lib\loader.js:3:14) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at loadLoader (G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\loader-runner\lib\loadLoader.js:18:17) at iteratePitchingLoaders (G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\loader-runner\lib\LoaderRunner.js:165:10) at G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (G:\workspace\renren\renren820\renrenio-renren-fast-vue-master\renren-fast-vue
ode_modules\loader-runner\lib\loadLoader.js:47:3) @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":false}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-2c1ebb75","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/demo/echarts.vue 4:14-399 13:3-17:5 14:22-407 @ ./src/views/demo/echarts.vue @ ./src/views ^\.\/.*\.vue$ @ ./src/router/import-development.js @ ./src/router/index.js @ ./src/main.js @ multi (webpack)-dev-server/client?http://localhost:8002 webpack/hot/dev-server babel-polyfill ./src/main.js error in ./src/views/demo/ueditor.vue

エラーはnode-sassモジュールが見つからないことを示します.
cnpmのインストールによるものですので、npmに交換してインストールすればいいです
またはcnpm install node-sass@latest
解決方法:
入力コマンド:cnpm install node-sass@latest
または:cnpm install node-sass--save