Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
No se puede resolver el árbol de dependencias, ya no puedo instalar paquetes con el administrador de paquetes de nodos

Estoy desarrollando una aplicación nativa de reacción. A lo largo del proyecto, he utilizado el administrador de paquetes de Node para instalar los paquetes. Pero me encontré con este problema de dependencia por primera vez cuando intenté instalar los componentes de estilo nativo de reacción con npm, así que lo instalé con yarn. Ahora no puedo instalar ningún paquete con el administrador de paquetes de nodos, me encuentro con este error de árbol de dependencia que no puede resolver.

 PS C:\Users\94774\OneDrive\React Projects\Native Projects\Android\socialmediaapp> npm install react@latest react-native@latest npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: socialmediaapp@0.0.1 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"17.0.1" from react-native@0.64.1 npm ERR! node_modules/react-native npm ERR! react-native@"0.64.1" 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 C:\Users\94774\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\94774\AppData\Local\npm-cache\_logs\2021-05-06T12_12_44_173Z-debug.log PS C:\Users\94774\OneDrive\React Projects\Native Projects\Android\socialmediaapp> npm install --save @react-native-firebase/app npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: socialmediaapp@0.0.1 npm ERR! Found: react@17.0.1 npm ERR! node_modules/react npm ERR! react@"17.0.1" from the root project npm ERR! peer react@">= 16.8.0" from styled-components@5.3.0 npm ERR! node_modules/styled-components npm ERR! styled-components@"^5.3.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"17.0.2" from react-dom@17.0.2 npm ERR! node_modules/react-dom npm ERR! peer react-dom@">= 16.8.0" from styled-components@5.3.0 npm ERR! node_modules/styled-components npm ERR! styled-components@"^5.3.0" 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 C:\Users\94774\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\94774\AppData\Local\npm-cache\_logs\2021-05-06T12_41_01_675Z-debug.log
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

npm install react-native-styled-components --legacy-peer-deps

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!