webpack错误:Module build failed: Error: ENOENT: no such file or directory, scandir

Module build failed: Error: ENOENT: no such file or directory, scandir '/Users/hcj/webpack/inforward_website/node_modules/[email protected]@node-sass/vendor'
    at Object.fs.readdirSync (fs.js:904:18)
    at Object.getInstalledBinaries (/Users/hcj/webpack/inforward_website/node_modules/[email protected]@node-sass/lib/extensions.js:131:13)
    at foundBinariesList (/Users/hcj/webpack/inforward_website/node_modules/[email protected]@node-sass/lib/errors.js:20:15)
    at foundBinaries (/Users/hcj/webpack/inforward_website/node_modules/[email protected]@node-sass/lib/errors.js:15:5)
    at Object.module.exports.missingBinary (/Users/hcj/webpack/inforward_website/node_modules/[email protected]@node-sass/lib/errors.js:45:5)
    at module.exports (/Users/hcj/webpack/inforward_website/node_modules/[email protected]@node-sass/lib/binding.js:15:30)
    at Object. (/Users/hcj/webpack/inforward_website/node_modules/[email protected]@node-sass/lib/index.js:14:35)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.sassLoader (/Users/hcj/webpack/inforward_website/node_modules/[email protected]@sass-loader/lib/loader.js:46:72)

 @ ./node_modules/[email protected]@vue-style-loader!./node_modules/[email protected]@css-loader?{"sourceMap":true}!./node_modules/[email protected]@vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-543e7227","scoped":false,"hasInlineConfig":false}!./node_modules/[email protected]@sass-loader/lib/loader.js?{"sourceMap":true}!./src/assets/css/indexabout.scss 4:14-380 13:3-17:5 14:22-388
 @ ./src/pages/category/components/indexAbout.vue
 @ ./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@vue-loader/lib/selector.js?type=script&index=0!./src/pages/index/components/screenAboutUs.vue
 @ ./src/pages/index/components/screenAboutUs.vue
 @ ./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@vue-loader/lib/selector.js?type=script&index=0!./src/pages/index/index.vue
 @ ./src/pages/index/index.vue
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi ./node_modules/[email protected]@webpack-dev-server/client?http://192.168.0.9:8080 webpack/hot/dev-server ./src/main.js

解决方案:npm rebuild node-sass

你可能感兴趣的:(webpack错误:Module build failed: Error: ENOENT: no such file or directory, scandir)