Posts

Showing posts with the label angular error

How to solve "Running script disabled/Execution policy" error in Angular CLI ?

Image
 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