npm run dev遇到的问题
作者:互联网
提示缺少了哪些包
These relative modules were not found:
* ../legacy/getTextRect in ./node_modules/echarts/lib/util/format.js
* ./Point in ./node_modules/zrender/lib/core/BoundingRect.js
.......
然后npm install之后,显示安装失败了
npm WARN eslint-loader@2.2.1 requires a peer of eslint@>=1.6.0 <7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN shulong@3.4.0 No repository field.
audited 1586 packages in 17.142s
90 packages are looking for funding
run `npm fund` for details
found 3 vulnerabilities (1 low, 2 high)
run `npm audit fix` to fix them, or `npm audit` for details
然后强制安装echarts的版本npm install echarts@5.0.2
这时候又提示缺少了包zrender
再次npm install zrender -S 保存到package.json中
最后npm run dev 启动成功
标签:npm,zrender,node,run,modules,dev,install,echarts 来源: https://www.cnblogs.com/javaupup/p/14630813.html