VUE:安装npm install报错Module build failed: Error: ENOENT: no such file or directory, scandir
Posted java李杨勇
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VUE:安装npm install报错Module build failed: Error: ENOENT: no such file or directory, scandir相关的知识,希望对你有一定的参考价值。
报错信息如下:
Module build failed: Error: ENOENT: no such file or directory, scandir 'D:\\renren-fast-vue\\node_modules\\node-sass\\vendor'
at Object.fs.readdirSync (fs.js:904:18)
at Object.getInstalledBinaries (D:\\renren-fast-vue\\node_modules\\node-sass\\lib\\extensions.js:132:13)
at foundBinariesList (D:\\renren-fast-vue\\node_modules\\node-sass\\lib\\errors.js:20:15)
at foundBinaries (D:\\renren-fast-vue\\node_modules\\node-sass\\lib\\errors.js:15:5)
at Object.<anonymous> (D:\\renren-fast-vue\\node_modules\\node-sass\\lib\\index.js:14:35)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\\renren-fast-vue\\node_modules\\sass-loader\\lib\\loader.js:3:14)
at Module._compile (module.js:653:30)
解决方法如下:
重新执行 npm rebuild node-sass
最后解决启动成功:
以上是关于VUE:安装npm install报错Module build failed: Error: ENOENT: no such file or directory, scandir的主要内容,如果未能解决你的问题,请参考以下文章
解决在部署前端Vue框架项目时,使用npm install和yarn install安装插件报错
解决在部署前端Vue框架项目时,使用npm install和yarn install安装插件报错
npm 在安装 Vue脚手架命令(npm install -g @vue/cli)时报错安装报错--“Unexpected end of JSON input while parsing near
vue框架中webpack更新了,怎么获取本地数据,安装了npm install axios --save也不想,一直报错