angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

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

Open shlomoa opened this issue 4 months ago • 1 comments

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

shlomoa avatar Jul 05 '26 15:07 shlomoa

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.