0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vue : このシステムではスクリプトの実行が無効になっているため~ PowerShellからVueプロジェクトが作れない原因を解消

Posted at

解消方法

以下の命令をPowerShellで実行
Set-ExecutionPolicy RemoteSigned -Scope Process

おかげさまで以下の記事を見て一発で解消できました。このコマンドはセキュリティポリシーを一時的に変更しているようです。

備忘録

メモ:なぜかvue ~~のコマンドをPoweShellに入力すると以下のログが出てきました。

発生ログ
vue : このシステムではスクリプトの実行が無効になっているため、ファイル C:~~~~~~~ を読み込むことができません。詳細については、「about_Execution_Policies」(https://go.microsoft.com/fwlink/?LinkID=135170) を参照してください。
発生場所 行:1 文字:1

  • vue -v
  •   + CategoryInfo          : セキュリティ エラー: (: ) []、PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess
    
    
    

ログに出てきたサイトを見てみるとPoweShellで悪意のある事を実行しないようにセキュリティにひっかけてるようです。

ついでに

実行ポリシーの確認方法

PS C:\> Get-ExecutionPolicy -List

以下の記事が参考になりました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?