Ashish
Ashish

Reputation: 84

ionic.ps1 cannot be loaded because running scripts is disabled on this system

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

Answers (3)

Hussam Adil
Hussam Adil

Reputation: 540

I solve using run cmd as administrator but make sure you have ionic already installed

Upvotes: 0

Vishal Kumar
Vishal Kumar

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

Ashish
Ashish

Reputation: 84

to enable script code runt this command

Set-ExecutionPolicy -Scope LocalMachine Unrestricted

Upvotes: 5

Related Questions