make:函数、脚本文件或可运行的程序。检查名称的拼写,或者如果包含路径,请验证路径是否正确并尝试

问题描述 投票:0回答:0

我正在通过这个视频教程学习 Go lang https://youtu.be/LOn1GUsjOF4?t=163 。我的环境:Windows 11 x64,Visual Studio Code 1.75.1(最新),Go v1.20.1(最新)。

PS D:\temp2023_02_24\newfeeder> go mod init newsfeeder
go: creating new go.mod: module newsfeeder
go: to add module requirements and sums:
        go mod tidy
PS D:\temp2023_02_24\newfeeder> go run .\main.go
hi
PS D:\temp2023_02_24\newfeeder> go run .\main.go
hi
PS D:\temp2023_02_24\newfeeder> go run .\main.go
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
+ make dev
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (make:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS D:\temp2023_02_24\newfeeder>

如何解决?

go visual-studio-code makefile
© www.soinside.com 2019 - 2024. All rights reserved.