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 啟動成功


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM