Как исправить данный конфликт зависимостей?

Как исправить данный конфликт зависимостей ?
Running "npm install" in the root dir of your repository 
[stderr] npm
[stderr] ERR! code ERESOLVE
[stderr] npm ERR!
[stderr] ERESOLVE could not resolve
[stderr] npm ERR! 
[stderr] npm ERR! While resolving: styled-components@5.3.6
[stderr] npm ERR! Found: react@18.1.0
[stderr] npm ERR! node_modules/react
[stderr] npm ERR!   react@"18.1.0" from the root project
[stderr] npm ERR!   peer react@"*" from @react-navigation/bottom-tabs@6.5.4
[stderr] npm ERR!   node_modules/@react-navigation/bottom-tabs
[stderr] npm ERR!     @react-navigation/bottom-tabs@"^6.5.4" from the root project
[stderr] npm ERR!   18 more (@react-navigation/core, @react-navigation/elements, ...)
[stderr] npm
[stderr] ERR! 
[stderr] npm ERR! Could not resolve dependency:
[stderr] npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.3.6
[stderr] npm ERR! node_modules/styled-components
[stderr] npm ERR!   styled-components@"^5.3.6" from the root project
[stderr] npm ERR!   peer styled-components@">= 2" from babel-plugin-styled-components@2.0.7
[stderr] npm ERR!   node_modules/babel-plugin-styled-components
[stderr] npm ERR!     babel-plugin-styled-components@">= 1.12.0" from styled-components@5.3.6
[stderr] npm ERR! 
[stderr] npm ERR! Conflicting peer dependency: react@18.2.0
[stderr] npm ERR! node_modules/react
[stderr] npm ERR!   peer react@"^18.2.0" from react-dom@18.2.0
[stderr] npm ERR!   node_modules/react-dom
[stderr] npm ERR!     peer react-dom@">= 16.8.0" from styled-components@5.3.6
[stderr] npm ERR!     node_modules/styled-components
[stderr] npm ERR!       styled-components@"^5.3.6" from the root project
[stderr] npm ERR!       1 more (babel-plugin-styled-components)
[stderr] npm ERR! 
[stderr] npm ERR! Fix the upstream dependency conflict, or retry
[stderr] npm ERR! this command with --force, or --legacy-peer-deps
[stderr] npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
[stderr] npm ERR! 
[stderr] npm ERR! See /home/expo/.npm/eresolve-report.txt for a full report.
[stderr] 
[stderr] npm ERR! A complete log of this run can be found in:
[stderr] npm ERR!     /home/expo/.npm/_logs/2023-02-08T11_43_25_629Z-debug-0.log
npm exited with non-zero code: 1
  • Вопрос задан
  • 211 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы