解决 Error: ENOENT: no such file or directory, scandir ‘.. ode_modules ode-sassvendor‘

Posted 在奋斗的大道

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决 Error: ENOENT: no such file or directory, scandir ‘.. ode_modules ode-sassvendor‘相关的知识,希望对你有一定的参考价值。

问题描述:启动公司前端工程师的前端项目,提示如下错误信息:


Module build failed: Error: ENOENT: no such file or directory, scandir '*********\\node_modules\\node-sass\\vendor'

 @ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader??ref--8-oneOf-1-1!./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/modules/docSearch/components/searchTable/searchResult.vue?vue&type=style&index=0&id=d0be5df2&lang=scss&scoped=true& 4:14-537 15:3-20:5 16:22-545
 @ ./src/modules/docSearch/components/searchTable/searchResult.vue?vue&type=style&index=0&id=d0be5df2&lang=scss&scoped=true&
 @ ./src/modules/docSearch/components/searchTable/searchResult.vue
 @ ./src/modules/docSearch/index.js
 @ ./src/router.js
 @ ./src/main.js
 @ multi ./node_modules/_webpack-dev-server@3.11.2@webpack-dev-server/client?http://192.168.1.74:8081/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

解决办法:npm rebuild node-sass

以上是关于解决 Error: ENOENT: no such file or directory, scandir ‘.. ode_modules ode-sassvendor‘的主要内容,如果未能解决你的问题,请参考以下文章

已解决Error: ENOENT: no such file or directory, open ‘F:xxx ode_modulesecharts

Error:npm WARN enoent ENOENT: no such file or directory, open ‘C:UsersXXpackage.json‘son‘

VUE:安装npm install报错Module build failed: Error: ENOENT: no such file or directory, scandir

Android open failed: ENOENT (No such file or directory)

人人开源 VUE项目报错./src/assets/scss/index.scssModule build failed: Error: ENOENT: no such file or direct(代

人人开源 VUE项目报错./src/assets/scss/index.scssModule build failed: Error: ENOENT: no such file or direct(代