2
I’m taking a chance on React Native and it turns out that when I try to execute the command expo init
, or even expo --version
through Powershell is giving the following error:
expo :
O arquivo C:\Users\Lucas\AppData\Roaming\npm\expo.ps1 não pode ser carregado.
O arquivo
C:\Users\Lucas\AppData\Roaming\npm\expo.ps1 não está assinado digitalmente.
Não é possível executar este script no sistema atual.
Para obter mais informações sobre como executar scripts e definir a
política de execução, consulte about_Execution_Policies at
https://go.microsoft.com/fwlink/?LinkID=135170.
No linha:1 caractere:1
+ expo --version
+ ~~~~
+ CategoryInfo : ErrodeSegurança: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Turns out the old cmd command runs, and through some queries here and there I figured out how to change the script protection policies, so I switched to bypass and it runs, but I believe I leave my computer vulnerable like this, then I ask: how do I add the expo as an exception so that it can be executed, because even with Allsigned it does not respond to commands!
*Excuse me, my first time in the community and starting in this wonderful art of being a programmer!
Has answer here
– Bruno Warmling