Skip to content

NG_DISABLE_VERSION_CHECK not working #26836

@Quentigus

Description

@Quentigus

Command

update

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Launching this command on Angular 8 application is throwing this error :

NG_DISABLE_VERSION_CHECK=1 npx --yes @angular/cli@8 update @angular/common@8 @angular/cli@8 --allow-dirty --force --verbose

throw this error :

The installed Angular CLI version is older than the latest stable version.
Installing a temporary version to perform the update.
Installing packages for tooling via npm.
Installed packages for tooling via npm.
Node.js version v16.19.0 detected.
The Angular CLI requires a minimum Node.js version of v18.13.

Please update your Node.js version or visit https://nodejs.org/ for additional instructions.

@angular/cli@17.0.9 is ignoring NG_DISABLE_VERSION_CHECK flag inside ng.js binary file

Minimal Reproduction

  • Generation of Angular v7 application
  • Execute npx --yes @angular/cli@8 update @angular/cli@8 @angular/core@8

Exception or Error

Node.js version v16.19.0 detected.
The Angular CLI requires a minimum Node.js version of v18.13.

Please update your Node.js version or visit https://nodejs.org/ for additional instructions.

Your Environment

ng version throws this error ...


Node.js version v16.19.0 detected.
The Angular CLI requires a minimum Node.js version of v18.13.

Please update your Node.js version or visit https://nodejs.org/ for additional instructions.


### Anything else relevant?

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions