When using suitecloud
command from npm package (globally installed) on windows (powershell inside VSCodde), got the following error:
File C:\Users\Anant\AppData\Roaming\npm\suitecloud.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
+ suitecloud project:deploy
+ ~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
On googling found the reason and solution:
Summary:
“Execution policy” of Windows powershell - was set (for some reason - default) to Restricted. This is done to prevent untrusted scripts which can affect your Windows client environment.
See it by Get-ExecutionPolicy
and change it by Set-ExecutionPolicy