解决Module build failed: Error: no such file or directory, scandir '...node_modules\node-sass\vendor'
使用npm启动vue项目时出现以下错误:
at Object.readdirSync (fs.js:785:3)
at Object.getInstalledBinaries (D:\project\xxx\node_modules\node-sass\lib\extensions.js:130:13)
at foundBinariesList (D:\project\xxx\node_modules\node-sass\lib\errors.js:20:15)
at foundBinaries (D:\project\xxx\node_modules\node-sass\lib\errors.js:15:5)
at Object.module.exports.missingBinary (D:\project\xxx\node_modules\node-sass\lib\errors.js:45:5)
at module.exports (D:\project\xxx\node_modules\node-sass\lib\binding.js:15:30)
at Object.<anonymous> (D:\project\xxx\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (D:\project\xxx\node_modules\sass-loader\lib\loader.js:3:14)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
解决fa方案
执行
npm rebuild node-sass
更多推荐
所有评论(0)