参考文章 问题:执行 npm install echarts 时,默认安装最新版,版本过高报错([Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘init’ of undefined”) 参考 解决方式: 卸载echarts模块 npm uninstall echarts安装指定版本echarts npm install echarts@4.2.1 --save