How to clear this error “cannot be loaded because running script is disabled” in angular | visual studio code

How to Clear

ng.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see  about_Execution_Policies at

Go to your Start => search window PowerShell and open run as administration

Open Your power shell and type the command 

Set-ExecutionPolicy Unrestricted

Type Y for Yes (or) A for Yes to All.

Then Go to Edit system environment variable “%AppData%\npm

Add %AppData%\npm

Click on Path => add the new environment path

Environment Variable

Click on “Ok”. Restart the visual studio. Now run “ng serve”.

Then Go to your Visual Studio Code and try your angular command now.

For further queries below comments are welcome.

I hope this will be helpful for you. Have a good day.