GO#go : The term ‘go’ is not recognized as the name of a cmdletの解決法

VSCODEでGOのコマンドを実行すると以下のエラーが発生しました。

go : The term ‘go’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path  was included, verify that the path is correct and try again. At line:1 char:1

VSCODEのPowerShellから下記のコマンドを実行すれば問題解決です。

$env:Path = [System.Environment]::GetEnvironmentVariable(“Path”,”Machine”) 

シェアする

  • このエントリーをはてなブックマークに追加

フォローする