Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
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.最后运行项目即可
更多推荐
所有评论(0)