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

1.5K
Views
NestJS "Warn EBADENGINE unsupported engine @angulardevkit" when trying to install class-validator and class-transformer

I am working through the course on the NestJS website. I need to install class-validator and class-transformer npm i class-validator class-transformer

But when I do I get error:

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@angular-devkit/core@12.2.10',
npm WARN EBADENGINE   required: {
npm WARN EBADENGINE     node: '^12.14.1 || >=14.0.0',
npm WARN EBADENGINE     npm: '^6.11.0 || ^7.5.6',
npm WARN EBADENGINE     yarn: '>= 1.13.0'
npm WARN EBADENGINE   },
npm WARN EBADENGINE   current: { node: 'v16.11.0', npm: '8.0.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@angular-devkit/schematics@12.2.10',
npm WARN EBADENGINE   required: {
npm WARN EBADENGINE     node: '^12.14.1 || >=14.0.0',
npm WARN EBADENGINE     npm: '^6.11.0 || ^7.5.6',
npm WARN EBADENGINE     yarn: '>= 1.13.0'
npm WARN EBADENGINE   },
npm WARN EBADENGINE   current: { node: 'v16.11.0', npm: '8.0.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@angular-devkit/schematics-cli@12.2.10',
npm WARN EBADENGINE   required: {
npm WARN EBADENGINE     node: '^12.14.1 || >=14.0.0',
npm WARN EBADENGINE     npm: '^6.11.0 || ^7.5.6',
npm WARN EBADENGINE     yarn: '>= 1.13.0'
npm WARN EBADENGINE   },
npm WARN EBADENGINE   current: { node: 'v16.11.0', npm: '8.0.0' }
npm WARN EBADENGINE }

I don't understand how to fix this.

NestJS and Angular seem to be aware of this issue as there has been a brief discussion between the 2 teams on GitHub Memory. Something about the latest version of Angular not supporting npm 8 or higher?

But it seems like the Angular team released a fix for this in the release on 20th October 2021 - 4 days ago

I am using Ubuntu 20.04
Node 16.11
npm 8

What do I need to do to resolve this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Updated 18.11.2021:

NestJS has updated the dependencies (in particular @nestjs/cli@8.1.5), so now you can update your project dependencies (just run npm update) and switch back to using npm@8 (just run npm install -g npm@8).

Original answer:

Yes, what you should do today — is downgrade npm to version 7. To do this, just run npm install -g npm@7.

Npm v8 support has already been added to angular (https://github.com/angular/angular-cli/blob/master/CHANGELOG.md#12211-2021-10-20), but we are still waiting for NestJS to update the dependencies. As soon as that happens, you should be able to switch back to npm v8 by running npm i -g npm@8.

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!