site-icon Hong Cheung

FullyQualifiedErrorId : UnauthorizedAccess を修正する方法 - PowerShell エラー

Jan 3, 2024
Programming powershellvscodeprogramming
1 分
197 語
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