'ionic : File C:\Users\Admin\AppData\Roaming\npm\ionic.ps1 cannot be loaded because running scripts is disabled on this system
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
Solution 1:[1]
Run the following command in same terminal
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Solution 2:[2]
Simply delete the file ionic.ps1 from its location "C:\Users\Admin\AppData\Roaming\npm\ionic.ps1"
Solution 3:[3]
if you using yarn
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | kunal shaktawat |
| Solution 2 | Hamid Araghi |
| Solution 3 | Deepak Singh |
