When running the project you will see below error.
ng : File C:\Users\admin\AppData\Roaming\npm\ng.ps1 cannot be loaded because running
scripts is disabled on this system.For more information, see about_Execution_Policies at
At line:1 char:1
+ ng s
+ CategoryInfo : SecurityError: (:) , PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
How to fix this ng.ps1
Open your angular project folder on Command line(CMD) and then run the below code.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Now run the project. I hope it works for you
You can try to do as below:
Remove ng.ps1 file from the directory C:/Users/admin/AppData/Roaming/npm/ng.ps1
Now run the project. I hope it works for you.
Imp:admin is your PC user name. Me be your PC user name is change.