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

822
Views
Error de instalación de npm al usar webpack, no se pudo resolver la dependencia

El error de la siguiente manera:

 > npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: webpack@3.12.0 npm ERR! node_modules/webpack npm ERR! dev webpack@"^3.5.6" from the root project npm ERR! peer webpack@"2 || 3 || 4" from _babel-loader@7.1.5@babel-loader@7.1.5 npm ERR! node_modules/_babel-loader@7.1.5@babel-loader npm ERR! 5 more (_html-webpack-plugin@2.30.1@html-webpack-plugin, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer webpack@"^2.0.0" from _strip-pragma-loader@1.0.0@strip-pragma-loader@1.0.0 npm ERR! node_modules/_strip-pragma-loader@1.0.0@strip-pragma-loader 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 /home/agou-ops/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /home/agou-ops/.npm/_logs/2021-04-12T02_49_11_062Z-debug.log

contenido del archivo debug.log : ingrese la descripción de la imagen aquí

versión del paquete y sistema

  • npm: 7.6.3
  • paquete web: 3.12.0
  • sistema: Ubuntu 20.04

¿Cómo debo arreglarlo?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

npm@7 tiene una resolución de dependencia más estricta que las versiones anteriores. Si puede actualizar la versión de webpack en su proyecto raíz, eso puede resolverlo. Una alternativa fácil y rápida para probar es npm install --legacy-peer-deps .

over 4 years ago · Santiago Trujillo Report

0

Me encontré con el mismo problema.

intente ejecutar el comando con --force , si no usa el paquete relacionado.

p.ej

 npm install --verbose --force
over 4 years ago · Santiago Trujillo Report

0

Degradar a una versión de npm inferior con, por ejemplo,

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