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,




 this is snapshot of my vscode angular cli error.


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

Popular posts from this blog

How to implement GoogleAdMob in Xamarin forms ?

Nilkanth dham swaminarayan temple, Poicha Gujarat visit