React map gl draw无法安装



我正试图在react map gl之上将react map gl draw添加到我的应用程序中;然而,我得到的错误如下:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: react-map-gl@6.1.18
npm ERR! node_modules/react-map-gl
npm ERR!   react-map-gl@"^6.1.18" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-map-gl@"^5.x" from react-map-gl-draw@1.0.2-alpha.0
npm ERR! node_modules/react-map-gl-draw
npm ERR!   react-map-gl-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.

我找不到任何人有同样的问题。如果有人能帮我一把,我将不胜感激。非常感谢。

我遇到了一个类似的问题,这对我有帮助。即安装包的标志(--legacy peer deps(。

使用--force命令如下:

npm install react-map-gl-draw --force

相关内容

  • 没有找到相关文章

最新更新