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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tahir AnsariRank #366 · 6.8K reputationPosted Apr 15, 2024, 8:07 AM EDT
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.