npm run dev遇到的问题

2021/4/8 10:08:54

本文主要是介绍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 run dev遇到的问题的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程