Module build failed: Error: ENOENT: no such file or directory, scandir 'F:\node_modules\node-sass\vendor'
    at Object.readdirSync (fs.js:790:3)
    at Object.getInstalledBinaries (F:\yihui\zhejiangnongxin\zjnx_demo\WEB_VUE\node_modules\node-sass\lib\extensions.js:133:13)
    at foundBinariesList (F:\yihui\zhejiangnongxin\zjnx_demo\WEB_VUE\node_modules\node-sass\lib\errors.js:20:15)
    at foundBinaries (F:\yihui\zhejiangnongxin\zjnx_demo\WEB_VUE\node_modules\node-sass\lib\errors.js:15:5)
    at Object.module.exports.missingBinary (F:\yihui\zhejiangnongxin\zjnx_demo\WEB_VUE\node_modules\node-sass\lib\errors.js:45:5)
    at module.exports (F:\yihui\zhejiangnongxin\zjnx_demo\WEB_VUE\node_modules\node-sass\lib\binding.js:15:30)
    at Object.<anonymous> (F:\yihui\zhejiangnongxin\zjnx_demo\WEB_VUE\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:690:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at getDefaultSassImpl (F:\yihui\zhejiangnongxin\zjnx_demo\WEB_VUE\node_modules\sass-loader\dist\index.js:198:10)
    at Object.loader (F:\yihui\zhejiangnongxin\zjnx_demo\WEB_VUE\node_modules\sass-loader\dist\index.js:80:29)

 @ ./node_modules/vue-style-loader!./node_modules/css-loader?{"sourceMap":true}!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-21034f6a","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/dist/cjs.js?{"sourceMap":true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/pages/custservice/newestProduct/newestProductQuery.vue 4:14-407 13:3-17:5 14:22-415
 @ ./src/pages/custservice/newestProduct/newestProductQuery.vue
 @ ./src/router/index.js
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:7001 webpack/hot/dev-server babel-polyfill ./src/main.js

 error  in ./src/pages/custservice/valueAddedService/valueAddedServiceManage.vue
以上是新接触的一个项目,npm install运行报错!!

以下解决方案:

1.在cmd中cd 进入当前项目node_modules目录

2.运行npm rebuild node-sass

3.最后运行项目即可

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

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

更多推荐