Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

942
Vistas
¿Cuál es la diferencia entre npm install --force y npm install --legacy-peer-deps?

Estoy tratando de instalar node_modules para un proyecto usando npm install . Pero está fallando.

Registro de errores :

 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: my-first-app@0.0.0 npm ERR! Found: @angular/compiler@11.0.9 npm ERR! node_modules/@angular/compiler npm ERR! @angular/compiler@"~11.0.0" from the root project npm ERR! peer @angular/compiler@"11.0.9" from @angular/compiler-cli@11.0.9 npm ERR! node_modules/@angular/compiler-cli npm ERR! dev @angular/compiler-cli@"~11.0.0" from the root project npm ERR! peer @angular/compiler-cli@"^11.0.0" from @angular-devkit/build-angular@0.1100.7 npm ERR! node_modules/@angular-devkit/build-angular npm ERR! dev @angular-devkit/build-angular@"~0.1100.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/compiler@"11.1.2" from @angular/localize@11.1.2 npm ERR! node_modules/@angular/localize npm ERR! peerOptional @angular/localize@"^11.0.0" from @angular-devkit/build-angular@0.1100.7 npm ERR! node_modules/@angular-devkit/build-angular npm ERR! dev @angular-devkit/build-angular@"~0.1100.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 /Users/amit/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /Users/amit/.npm/_logs/2021-02-04T17_58_24_981Z-debug.log

Los registros sugieren usar npm install --force o npm install --legacy-peer-deps

Quiero entender la diferencia básica entre npm install --force y npm install --legacy-peer-deps .

Además, ¿cuál es más preferible usar, en caso de que el rendimiento de --force sea mejor que --legacy-peer-deeps o viceversa?

Cualquier sugerencia/indicadores son muy apreciables. ¡Gracias!

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda