When running the project you will see below error.
PS F:\angularpro\mean-course> ng s --o ng : File C:\Users\my pc name\AppData\Roaming\npm\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. At line:1 char:1 + ng s --o + ~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess
How to fix this ng.ps1 cannot be loaded because running scripts is disabled on this system on angular?
Go to your angular project folder on Command line(CMD) and then run the below code. It will be fixed.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Now run the project. It’s work fine. Thank you!!!