9

ionic : File C:\Users\Admin\AppData\Roaming\npm\ionic.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1

  • ionic --version
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    
Free Fone
  • 101
  • 1
  • 1
  • 2

3 Answers3

68

Run the following command in same terminal

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

kunal shaktawat
  • 1,428
  • 12
  • 21
0

Simply delete the file ionic.ps1 from its location "C:\Users\Admin\AppData\Roaming\npm\ionic.ps1"

Hamid Araghi
  • 434
  • 4
  • 15
0

if you using yarn

 Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Deepak Singh
  • 749
  • 4
  • 16