首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我安装npm时出现的问题-传单-绘制-传单-保存

当我安装npm时出现的问题-传单-绘制-传单-保存
EN

Stack Overflow用户
提问于 2022-04-12 10:00:08
回答 1查看 523关注 0票数 1

当我试图安装react-传单

代码语言:javascript
复制
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: siis-new@0.1.0
npm ERR! Found: react-leaflet@3.2.5
npm ERR! node_modules/react-leaflet
npm ERR!   react-leaflet@"^3.2.5" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-leaflet@"^2.0.0" from react-leaflet-draw@0.19.8
npm ERR! node_modules/react-leaflet-draw
npm ERR!   react-leaflet-draw@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/hafizewp/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/PC/.npm/_logs/2022-04-12T10_02_53_677Z-debug.log

我不想改变我的反应版本!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-05-23 10:44:02

我们面临着类似的问题,这是由于版本上的冲突!

尝试了下面是我们当前依赖项的样子,我们使用的是节点v16.14.2

希望这在您的场景中有所帮助。

代码语言:javascript
复制
"dependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@id-sdk/util": "^3.0.0-pre.10",
"@material-ui/icons": "^4.11.3",
"@mui/icons-material": "^5.6.1",
"@mui/lab": "^5.0.0-alpha.77",
"@mui/material": "^5.6.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^13.5.0",
"axios": "^0.26.1",
"leaflet": "^1.7.1",
"leaflet-draw": "^1.0.4",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-dotenv": "^0.1.3",
"react-leaflet": "3.2.1",
"react-leaflet-draw": "0.19.8",
"react-query": "^3.34.19",
"react-scripts": "5.0.0",
"uninstall": "^0.0.0",
"web-vitals": "^2.1.4"
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71840680

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档