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.7K
Views
La instalación de npm no puede resolver el árbol de dependencia

Así que compré el tema del panel premium del sitio de Creative Tim y ahora, cuando intento trabajar en él, no puedo instalar los paquetes. Cuando ejecuto npm install me sale el siguiente error:

 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: argon-dashboard-pro-react@1.2.0 npm ERR! Found: react@17.0.1 npm ERR! node_modules/react npm ERR! react@"17.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.3.0" from react-bootstrap-table-next@4.0.3 npm ERR! node_modules/react-bootstrap-table-next npm ERR! react-bootstrap-table-next@"4.0.3" 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\acer\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\acer\AppData\Local\npm-cache\_logs\2021-02-08T12_06_48_302Z-debug.log

Cómo arreglar este error. También probé --legacy-peer-deps y --force. Nada parece funcionar.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Enfrenté este problema y cualquiera de las dos soluciones funcionó para mí. Ellos son:

  1. npm install --legacy-peer-deps

    En caso de que tengas curiosidad, ¿qué hace? Los paquetes se instalarán con la marca --legacy. El comando ignora todas las dependencias de pares durante la instalación, al estilo de las versiones 4 a 6 de npm.

  2. Este error proviene de la versión 7.x de npm. Por lo tanto, otra solución es degradar a npm 6.x.

Referencia: consulte esto para obtener más información

over 4 years ago · Santiago Trujillo Report

0

Encontré un error similar y al agregar --legacy-peer-deps lo resolvió por mí. npm install --legacy-peer-deps .

Lea más sobre '--legacy-peer-deps' aquí .

over 4 years ago · Santiago Trujillo Report

0

Prueba estos comandos

npm cache clean --force

npm install --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!