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

427
Views
Error al instalar el módulo de nodo en ReactJs

Acabo de clonar una aplicación React de Git que no tiene node_modules . Intento instalar con el comando npm install pero no puedo hacerlo. Se produce el siguiente error al instalar npm.

 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: fuse-react-app@2.0.0 npm ERR! Found: date-fns@2.0.0-alpha.26 npm ERR! node_modules/date-fns npm ERR! date-fns@"2.0.0-alpha.26" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer date-fns@"2.0.0-alpha.21" from @date-io/date-fns@1.0.1 npm ERR! node_modules/@date-io/date-fns npm ERR! @date-io/date-fns@"1.0.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\...\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\...\AppData\Local\npm-cache\_logs\2022-04-24T12_44_19_589Z-debug-0.log

Incluso probé con npm install --legacy-peer-deps pero no funciona. ¿Cómo puedo solucionar este problema?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

TL;RD

Una posible solución a este problema es establecer la versión de date-fns en 2.0.0-alpha.21 .


Respuesta completa

Para solucionar su problema, puede cambiar la versión de date-fns .

Para hacer esto, siga estos pasos.

  1. En package.json , edite la versión de date-fns con lo siguiente:

     { "dependencies": { "date-fns": "2.0.0-alpha.21" } }
  2. Guarde el archivo package.json y ejecute el siguiente comando en el mismo directorio que package.json .

     $ npm install
  3. Sus dependencias deberían instalarse correctamente.


Conclusión

En conclusión, debe cambiar la versión de date-fns a 2.0.0-alpha.21 .

about 4 years ago · Juan Pablo Isaza 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!