Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  




           


Visual Studio 2022 error 'ng is needed to create the project' when creating Angular core app
In Visual Studio 2022, I received an error 'ng is needed to create the project' when creating Angular core app (version 16).
NodeJs16 had been installed; creating a project worked prior to latest patching (but had been creating version 15 code).

Tried restarting.

Solution was to uninstall and then reinstall the Angular CLI.

Example:
In a command or powershell prompt, run:
npm uninstall @angular/cli -g
and then:
npm install @angular/cli@16 -g

Created By: amos 12/21/2023 11:22:52 AM
Updated: 12/21/2023 4:09:18 PM