File C:\Users\name\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system angular error

Esraa Alattar picture Esraa Alattar · Nov 25, 2020 · Viewed 13.9k times · Source

I am trying to run the Angular application by ng serve but the error is shown on the terminal

File C:\Users\name\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system angular error

Answer

Esraa Alattar picture Esraa Alattar · Nov 25, 2020

I just try this cmd in terminal and my problem has been solved

Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser

note : don't change CurrentUser to your username