Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildError:


Failed to compile. ./src/api/system/eduction.js Module build failed (from ./node_modules/eslint-loader/index.js): Error: ENOENT: no such file or directory, open 'E:\workspace\foen\foen-ui\src\api\system\eduction.js'

  

 

 

 

具体操作

1、若安装过 image-webpack-loader 先卸载

yarn remove image-webpack-loader   // npm uninstall image-webpack-loader
1
2、使用 cnpm , 这一步意思就是安装 cnpm 然后将全局的 registry 设置成阿里的镜像,国内阿里比较快

npm install cnpm -g --registry=https://registry.npm.taobao.org
1
3、使用 cnpm 安装  image-webpack-loader 会发现很快就安装好了,【手动滑稽】

cnpm install --save-dev  image-webpack-loader 
1
注:如果先前尝试使用 yarn 或 npm 安装过,一定要先卸载掉用 cnpm 安装

祝你成功!

  

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM