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)

解决方法:
npm rebuild node-sass

原理:经测试后得出...

转载于:https://my.oschina.net/jamesview/blog/1529743

GitHub 加速计划 / no / node-sass
8.5 K
1.33 K
下载
:rainbow: Node.js bindings to libsass
最近提交(Master分支:2 个月前 )
6081731a Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 9 个月前
62c0f46c Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 9 个月前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐