Recently, I upgraded the Angular CLI to version v13
globally. However, upon attempting to use the ng
command, I encountered a puzzling error message:
https://i.sstatic.net/gAgB4.png
After consulting advice provided here, I learned that Angular v13 is supposed to work with Node version v16.10.x
. So, I promptly installed Node version v16.10.0
, only to find that the issue persisted.
Following conventional troubleshooting steps, I tried uninstalling and reinstalling Angular CLI as follows:
npm uninstall -g @angular/cli
npm install -g @angular/cli@latest
I even attempted clearing the npm cache, but to no avail.
Curiously, reverting back to Angular CLI v12
resolved the problem completely.
Is this a well-known issue specific to Angular CLI version v13
?
Environment:
Windows 10 (win32 x64)
Update:
In response to various suggestions, I switched from using Windows Scripting Host
to utilizing Node.js
for execution of .js
files. While this adjustment allowed the ng
command to function, it unexpectedly resulted in every entered command defaulting to displaying the ng help
output. It seems as though all commands are being erroneously mapped to the ng help
command.