Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unsupported engine" when installing with npm 8 #1378

Closed
2 of 4 tasks
imgx64 opened this issue Oct 17, 2021 · 6 comments
Closed
2 of 4 tasks

"Unsupported engine" when installing with npm 8 #1378

imgx64 opened this issue Oct 17, 2021 · 6 comments

Comments

@imgx64
Copy link

imgx64 commented Oct 17, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When installing with npm 8, I get the below warning:

$ npm install -g @nestjs/cli
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@angular-devkit/core@12.2.7',
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.1', npm: '8.1.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@angular-devkit/schematics@12.2.7',
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.1', npm: '8.1.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@angular-devkit/schematics-cli@12.2.7',
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.1', npm: '8.1.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@angular-devkit/core@12.0.5',
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.1', npm: '8.1.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@angular-devkit/schematics@12.0.5',
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.1', npm: '8.1.0' }
npm WARN EBADENGINE }

Minimum reproduction code

N/A

Steps to reproduce

  1. npm install -g npm@8
  2. npm install -g @nestjs/cli

Expected behavior

No warning

Package version

8.1.2

NestJS version

No response

Node.js version

16.11.1

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@anchan828
Copy link

Maybe merging this PR will solve the issue. #1351

@kamilmysliwiec
Copy link
Member

This should be fixed in 8.1.3

@anchan828
Copy link

Thank you @kamilmysliwiec
However, an error still occurs. @nestjs/schematics also needs to be updated, I think.
nestjs/schematics#784

@kamilmysliwiec
Copy link
Member

Should be fixed in @nestjs/schematics@8.0.4

@anchan828
Copy link

ahh, Sorry 😔
It seems that support for npm 8 will be provided in 13.0.0. This issue may not be resolved until it is released.
https://github.com/angular/angular-cli/blob/master/CHANGELOG.md#1300-rc0-2021-10-13

@kamilmysliwiec
Copy link
Member

Let's track this issue there then

@nestjs nestjs locked and limited conversation to collaborators Oct 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants