首页
找靠谱产品
找解决方案
找靠谱公司
找案例
找对的人
专家智库
悬赏任务
SAAS
ToB门户
了解全球最新的ToB事件
论坛
潜水/灌水快乐,沉淀知识,认识更多同行。
ToB圈子
加入IT圈,遇到更多同好之人。
微博
Follow
记录
Doing
博客
Blog
文库
业界最专业的IT文库,上传资料也可以赚钱
下载
分享
Share
排行榜
Ranklist
相册
Album
应用中心
qidao123.com ToB IT社区-企服评测·应用市场
»
论坛
›
数据库
›
Oracle
›
【踩坑随笔】`npm list axios echarts`查察npm依靠包报 ...
返回列表
发新帖
【踩坑随笔】`npm list axios echarts`查察npm依靠包报错
[复制链接]
发表于 2025-10-20 18:48:45
|
显示全部楼层
|
阅读模式
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要
登录
才可以下载或查看,没有账号?
立即注册
×
npm list axios echarts查察npm依靠包出现以下报错,缘故原由就是包的
版本
匹配标题,按照提示降axios
版本
大概本身升找符合的got
版本
,我这里是选择了降版本。本文纪录仅做办理思绪参考不肯定适配各人的现真相况。
[email protected]
E:\Project\gitProject\weed_detection_project\frontend
├──
[email protected]
-> .\node_modules\.store\
[email protected]
\node_modules\axios
├──
[email protected]
-> .\node_modules\.store\
[email protected]
\node_modules\echarts
└─┬
[email protected]
-> .\node_modules\.store\
[email protected]
\node_modules\electron
└─┬ @electron/
[email protected]
-> .\node_modules\.store\@
[email protected]
\node_modules\@electron\get
└─┬
[email protected]
-> .\node_modules\.store\
[email protected]
\node_modules\got
├──
[email protected]
deduped invalid: "^0.20.0" from node_modules/.store/
[email protected]
/node_modules/got -> .\node_modules\.store\
[email protected]
\node_modules\axios
└─┬
[email protected]
-> .\node_modules\.store\
[email protected]
\node_modules\http2-wrapper
└─┬
[email protected]
-> .\node_modules\.store\
[email protected]
\node_modules\got
└──
[email protected]
deduped invalid: "^0.20.0" from node_modules/.store/
[email protected]
/node_modules/got, "^0.20.0" from node_modules/.store/
[email protected]
/node_modules/got -> .\node_modules\.store\
[email protected]
\node_modules\axios
npm error code ELSPROBLEMS
npm error invalid:
[email protected]
E:\Project\gitProject\weed_detection_project\frontend\node_modules\axios
复制
代码
安装过程一次性安装很轻易出现包之间的依靠标题,最好按完后list查抄一下,我这里选择本身去匹配对应的版本
,一个一个安装然后查察依靠
起首我安装我须要的第一个包cnpm install electron --legacy-peer-deps
然后用list查察它的依靠,然后发现有以下标题
包之间的版本不匹配,以防后续尚有别的坑我直接删除node_modules文件夹重新安装包并指定版本
cnpm install electron@^34.3.0 http2-wrapper@^2.0.7
复制
代码
安装完后再查察依靠没有飘红了就可以接着安其他依靠项
回复
使用道具
举报
返回列表
浏览过的版块
数据仓库与分析
向量数据库
Java
SQL-Server
.Net
人工智能
前端开发
云原生
分布式数据库
钜形不锈钢水箱
+ 我要发帖
登录后关闭弹窗
登录参与点评抽奖 加入IT实名职场社区
去登录
微信订阅号
微信服务号
微信客服(加群)
H5
小程序
快速回复
返回顶部
返回列表