1.

While running on Angular with node js i was getting error while running command ng g c componentname?

Answer»

While running on Angular with NODE js i was getting error while running command ng g c componentname?
Usally we are getting some permission error while running below command in angualr PROJECT when we are adding NEW component in angular project by below command

>ng g c componentname

in above command we will get some ACCES realted issue with powershell script as accessright issue to overcome this issue we will use below command on powershell command prompt by running as administrator.

Error:-running scripts is disabled on this system. For more information, SEE about_Execution_Policies at ng generate component

command to get rid of above error is given below

>Set-ExecutionPolicy -ExecutionPolicy Unrestricted



Discussion

No Comment Found