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 启动成功

posted @ 2021-04-08 09:44  张三丰学Java  阅读(2405)  评论(0编辑  收藏  举报