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

345
Views
No se pudo instalar Angular Universal en mi aplicación angular13

Estoy tratando de instalar @nguniversal/express-engine@13.0.1 en mi aplicación angular 13 pero recibo algunos errores. ¿Alguien puede ayudarme?

CLI angular: 13.0.4 Nodo: 16.13.1 Administrador de paquetes: npm 8.1.2

 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: gh-portfolio@0.0.0 npm ERR! Found: @angular/animations@13.0.3 npm ERR! node_modules/@angular/animations npm ERR! @angular/animations@"~13.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/animations@"13.1.0" from @angular/platform-server@13.1.0 npm ERR! node_modules/@angular/platform-server npm ERR! peer @angular/platform-server@"^13.0.1" from @nguniversal/express-engine@13.0.1 npm ERR! node_modules/@nguniversal/express-engine npm ERR! @nguniversal/express-engine@"13.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!

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Prueba esto, funcionó para mí.

Seguí los pasos y pude lograr lo mismo.

  1. Ejecute npm i @nguniversal/express-engine , si arroja un error, intente ejecutar con --force.
  2. ng generar universal --project=<nombre_del_proyecto>

Enlaces útiles:

  • https://www.npmjs.com/package/@nguniversal/express-engine
  • https://angular.io/guide/universal
  • https://github.com/chrisjwalk/angular-cli-netcore-ngrx-starter/issues/1#issuecomment-397814345
  • reinstale angular universal después de la actualización angular cli
  • https://stackoverflow.com/a/67739645/17680410
  • Representación del lado del servidor angular: ¿qué agregar a angular.json?
over 4 years ago · Santiago Trujillo Report

0

También tuve este problema, pero la '--fuerza' no es una buena idea. Así que creo que ng quiere actualizar @angular/animations pero tiene dependencias de pares con otros módulos angulares. Así que traté de actualizar todo el proyecto angular.

https://update.angular.io/

 npx @angular/cli@13 update @angular/core@13 @angular/cli@13

Intente actualizar su proyecto con este código, luego puede instalar un nuevo paquete con ng

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!