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 http://go.microsoft.com/fwlink/?LinkID=135170.

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.

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

  1. Pingback: URL
  2. Link exchange is nothing else but it is just placing the other person’s blog link on your page at proper place and other person will also do similar for you.

  3. Pingback: mơ tắm sông đánh đề con gì

Leave a Reply

Your email address will not be published. Required fields are marked *