Hi
I am using ng d c orders command but it is giving error - Script ng.ps1 cannot be loaded because running scripts is disabled on this system.
Thanks
Hi
I am using ng d c orders command but it is giving error - Script ng.ps1 cannot be loaded because running scripts is disabled on this system.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tahir AnsariPosted Apr 15, 2024, 12:07 PM
Run PowerShell as Administrator: Right-click on PowerShell and select "Run as Administrator" to open an elevated PowerShell session.
Set Execution Policy for the Current User: In the elevated PowerShell window, run the following command to allow script execution for the current user:
Confirm Change: Confirm the change by entering "Y" when prompted.
Re-run the Angular CLI Command: After changing the execution policy, try running your
ngcommand again in your regular PowerShell window. It should now execute without the previous error.