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

686
Views
¿Cómo instalar Swagger en Nestjs?

no puedo instalar swagger en mi aplicación nestjs. Cuando lo intento, me sale un error:

 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: test.api@0.0.1 npm ERR! Found: @nestjs/common@8.4.7 npm ERR! node_modules/@nestjs/common npm ERR! @nestjs/common@"^8.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @nestjs/common@"^9.0.0" from @nestjs/swagger@6.0.1 npm ERR! node_modules/@nestjs/swagger npm ERR! dev @nestjs/swagger@"*" 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\Jakub\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\Jakub\AppData\Local\npm- cache\_logs\2022-07-10T11_03_48_876Z-debug-0.log

¿Cómo resolver esto?

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

0

NestJS 9 se lanzó recientemente (hace 2 días).

https://trilon.io/blog/nestjs-9-is-now-disponible .

Se han realizado cambios en el @nestjs/swagger . Está instalando la última versión que tiene dependencias de pares en NestJS 9 mientras su proyecto aún está en la versión 8.4.7.

El error dice que no puede resolver la dependencia del par solicitada @nestjs/common@^9.0.0 . En su lugar, encuentra @nestjs/common@8.4.7 , pero eso no es compatible.

Actualice NestJS o instale una versión anterior del paquete @nestjs/swagger que sea compatible con la versión de NestJS que usa su aplicación. La versión 5.2.1 debería funcionar para usted.

 yarn add @nestjs/swagger@5.2.1 OR npm i @nestjs/swagger@5.2.1
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!