site-icon Hong Cheung

FullyQualifiedErrorId : UnauthorizedAccess - PowerShell 오류 해결 방법

Jan 3, 2024
Programming powershellvscodeprogramming
2 분
216 단어
FullyQualifiedErrorId : UnauthorizedAccess - PowerShell 오류 해결 방법

문제

Windows 11의 VSCode에서 터미널을 사용해 express 스크립트를 실행하려 했더니, 다음과 같은 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

해당 링크는 저에게는 작동하지 않았습니다.

다행히도 간단한 해결 방법이 있습니다.

해결 방법

설정 > 시스템 > 개발자용으로 이동합니다.

PowerShell 항목을 찾은 다음, 이 옵션을 켭니다:

실행 정책 변경. -> 켜기

powershell-changeExecutionPolicy

이제 스크립트를 다시 실행하면 정상적으로 작동할 것입니다. 처음 실행할 때는 실행 권한을 요청하는 메시지가 표시될 수 있습니다.

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!

글 제목:FullyQualifiedErrorId : UnauthorizedAccess - PowerShell 오류 해결 방법
글쓴이:Hong C.
게시 시간:Jan 3, 2024
Copyright 2026
사이트맵
개인정보 처리방침
서비스 약관

테마 제공 Astro-Yi