1
votes

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
    
1

1 Answers

20
votes

Run the following command in same terminal

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser