Reputation: 84
when I run the command is visual studio then it showing me this error - ionic.ps1 cannot be loaded because running scripts is disabled on this system
Upvotes: 1
Views: 4373
Reputation: 540
I solve using run cmd as administrator but make sure you have ionic already installed
Upvotes: 0
Reputation: 4627
If you are using Visual Studio Code, make sure you are running it as Admin.
Enter this command from VS Terminal.
Set-ExecutionPolicy Unrestricted
Upvotes: 2
Reputation: 84
to enable script code runt this command
Set-ExecutionPolicy -Scope LocalMachine Unrestricted
Upvotes: 5