Module build failed: Error: ENOENT: no such file or directory, scandir 'D:\www\Demo\vue2.0-demos\node_modules\node-sass\vendor'
at Object.fs.readdirSync (fs.js:896:18)
at Object.getInstalledBinaries (D:\www\Demo\vue2.0-demos\node_modules\node-sass\lib\extensions.js:124:13)
at foundBinariesList (D:\www\Demo\vue2.0-demos\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (D:\www\Demo\vue2.0-demos\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (D:\www\Demo\vue2.0-demos\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (D:\www\Demo\vue2.0-demos\node_modules\node-sass\lib\binding.js:15:30)
at Object.<anonymous> (D:\www\Demo\vue2.0-demos\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\www\Demo\vue2.0-demos\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (module.js:569:30)
Solution:
npm rebuild node-sass
Similar Posts:
- Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 7.x
- [Solved] Vue installs less Error: Failed to compile with 1 errors
- Module build failed: Error: Cannot find module ‘node-sass’
- [Solved] Module build failed: Error: Cannot find module ‘node-sass’
- Cannot findmodule’webpack-cli/bin/config-yargs
- Mac uniapp Compile Error: sass-loader [How to Solve]
- Solve Error: MissingSchemaError: Schema hasn’t been registered for model “YourModel”.
- How to Solve Error: Cannot find module ‘gulp-sass’
- Cannot find module ‘../lib/utils/unsupported.js’
- [Solved] Error:Node Sass version 6.0.0 is incompatible with ^4.0.0