文章目录
- Module build failed (from .node_moduleseslint-loaderindex.js) Error Cannot find module 'eslint-config-airbnb'
- UnhandledPromiseRejectionWarning: TypeError: this.getResolve is not a function at Object.loader
- npm 报错 : npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found
- { parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
- “export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
Module build failed (from .node_moduleseslint-loaderindex.js) Error Cannot find module ‘eslint-config-airbnb’
Module build failed (from .node_moduleseslint-loaderindex.js)
Error Cannot find module ‘eslint-config-airbnb’
- 问题截图:
- 解决:运行 npm install eslint-config-airbnb即可解决
这种问题就是找不到或者缺少什么插件就安装什么插件就可以。
UnhandledPromiseRejectionWarning: TypeError: this.getResolve is not a function at Object.loader
UnhandledPromiseRejectionWarning: TypeError: this.getResolve is not a function
at Object.loader
CSS版本过高的原因:我的webpack是3.6.0版本,而我的css-loader是5.0.0
npm uninstall css-loader *//卸载*
npm install css-loader@3.0.0 --save-dev *//指定版本重装*
卸载重装完成后,问题得到解决
npm 报错 : npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found
之前,在npm下载包的时候出现一个错误:
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\***\AppData\Roaming\npm-cache\_logs\2017-09-28T03_03_25_358Z-debug.log
可能是npm版本的问题,可以去提示的npm
目录里面去查看日志,尝试更新npm的版本或者回退版本。
更新npm版本命令:
npm install npm -g 要记住全局更新
淘宝镜像命令:cnpm install npm -g 淘宝镜像会比较快
再查看一下npm版本:npm -v
再试着去安装包,应该就没啥问题了。
{ parser: “babylon” } is deprecated; we now treat it as { parser: “babel” }.
npm run dev 错误提示:
{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
是prettier版本相关问题,可以更新prettier版本至支持{ parser: "babel" }
直接在项目中: cnpm install prettier@~1.12.0 -D
或者cnpm install prettier@~1.12.0 --save-dev
然后重新npm run dev
基本可以解决
“export ‘default‘ (imported as ‘echarts‘) was not found in ‘echarts‘
echarts
图 :报错"export ‘default’ (imported as ‘echarts’) was not found in ‘echarts’
版本问题,未指定版本时,echarts默认安装5.0的最新版本,最新版本支持存在问题,降低echarts
版本为4.9.0,npm install echarts@4.9.0
,错误解除