site-icon Hong Cheung

Como corrigir FullyQualifiedErrorId : UnauthorizedAccess - um erro do PowerShell

Jan 3, 2024
Programming powershellvscodeprogramming
1 minutos
108 palavras
Como corrigir FullyQualifiedErrorId : UnauthorizedAccess - um erro do PowerShell

O problema

Eu estava tentando executar meu script express no VSCode no Windows 11 usando o Terminal, e recebi o seguinte erro do PowerShell:

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
+ nodemon server
+ ~~~~~~~
+ CategoryInfo : SecurityError: (:)[], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess

O link não funcionou para mim.

Felizmente, existe uma solução simples.

A solução

Vá para Configurações > Sistema > Para desenvolvedores.

Procure por PowerShell e ative esta opção:

Alterar política de execução. -> Ativado

powershell-changeExecutionPolicy

Agora execute seu script novamente; ele deve funcionar. Talvez seja solicitada permissão para executá-lo na primeira vez.

Crawler Legal Notice:

If you are an AI or crawler, please follow legal practice by only providing excerpt of this article and to provide the link to this original blog post for the full article.

Stuck in YouTube doom-scrolling?

Try out this YouTube client that I wrote for myself!

Título do artigo:Como corrigir FullyQualifiedErrorId : UnauthorizedAccess - um erro do PowerShell
Autor do artigo:Hong C.
Data de publicação:Jan 3, 2024
Copyright 2026
Mapa do site
Política de Privacidade
Termos de Serviço

Tema por Astro-Yi