main.go:5:2: missing go.sum entry for module providing package github.com/astaxie/beego (imported by mynode1); to add:
go get mynode1
在beego创建完项目之后报以上的错
更新依赖包
go mod tidy //整理依赖,删除不需要的包,下载新的依赖包
更新go.sum
再次bee run 即可
PS D:\golang\src\mynode1> bee run
______
| ___ \
| |_/ / ___ ___
| ___ \ / _ \ / _ \
| |_/ /| __/| __/
\____/ \___| \___| v1.12.0
2022/04/27 20:53:05 INFO ▶ 0001 Using 'mynode1' as 'appname'
2022/04/27 20:53:05 INFO ▶ 0002 Initializing watcher...
2022/04/27 20:53:09 SUCCESS ▶ 0003 Built Successfully!
2022/04/27 20:53:09 INFO ▶ 0004 Restarting 'mynode1.exe'...
2022/04/27 20:53:09 SUCCESS ▶ 0005 './mynode1.exe' is running...
2022/04/27 20:53:09.931 [I] [asm_amd64.s:1581] http server Running on http://:8080
2022/04/27 20:53:10 SUCCESS ▶ 0006 Built Successfully!
2022/04/27 20:53:10 INFO ▶ 0007 Restarting 'mynode1.exe'...
2022/04/27 20:53:10 SUCCESS ▶ 0008 './mynode1.exe' is running...
2022/04/27 20:53:10.668 [I] [asm_amd64.s:1581] http server Running on http://:8080
输入localhost:8080