Skip to content

Command: "npx -y @angular/cli@22 new" failed #33511

Description

@shlomoa

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

Sighting

  • Command: npx -y @angular/cli@22 new ngdj-test --directory . --no-create-application --package-manager npm --skip-git --defaults
  • Errors:
    An unhandled exception occurred: Path "C:\Bla\Bla\AppData\Local\npm-cache_npx\42426ae95cde5957\node_modules@schematics\angular\ng-new\schema.json" does not exist.
    See "C:\WINDOWS\TEMP\ng-NpBU4l\angular-errors.log" for further details.

AI analysis

Wrong and flagging bad version.

My analysis

The root cause is a cache corruption, once I removed npm cache it worked !

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions