How to solve "Running script disabled/Execution policy" error in Angular CLI ?
While working on angular we use command line for running script to execute commands for angular like
"ng generate component comp-name" , "ng generate module mod-name", many other,
but sometimes you may face error like this,
To solve this, you just have fire one single command from same terminal ,
"Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser"
As we can see after this command my command for module generation executed successfully, and no error shown like above.
Thanks
Comments
Post a Comment