Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
when install new component on project on angular 8

<pre> ng g component z2dataDelivery

i get error
ng : The term 'ng' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try  again. At line:1 char:1 + ng g component z2dataDelivery + ~~     + CategoryInfo          : ObjectNotFound: (ng:String) [], CommandNotFoundException     + FullyQualifiedErrorId : CommandNotFoundException


so how to solve this issue please

What I have tried:

i install node but issue still exist after install node
Posted
Comments
Richard MacCutchan 27-Mar-22 12:05pm    
The message is clear, the system cannot find a command named "ng". This means that either you have not installed it correctly, or its location has not been added to the PATH environmeent variable.
Dave Kreskowiak 27-Mar-22 12:06pm    
That's not an Angular error. That message came from Powershell. Powershell cannot run Angular script.

You're going to have to go into a lot more detail as to what you did to get that error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900