In this post we will fix Angular cannot be loaded because running scripts is disabled on this system Error. When run command on terminal then you will see below error.
ng : File C:\Users\PCNAME\AppData\Roaming\npm\ng.ps1 cannot be loaded because running scripts is disabled on this system. For more
information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ng s
+ ~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Solutions:
First search PowerShell command prompt on your PC. Then click on mouse right click. Below Image.
Then paste the below command and hit enter.
COMMAND:
Set-ExecutionPolicy RemoteSigned
Now type “A” and hit enter. This is the solution of this error. Thank You!!!