【发布时间】:2021-04-28 21:53:33
【问题描述】:
C:\Users\Administrator\Documents\code\projects\weatherly>go get -u github.com/gofiber/fiber/v2
cannot find package "github.com/gofiber/fiber/v2" in any of:
c:\go\src\github.com\gofiber\fiber\v2 (from $GOROOT)
C:\Users\Administrator\go\src\github.com\gofiber\fiber\v2 (from $GOPATH)
如何下载包?我相信它正在尝试检查我的计算机上缓存的内容,我不知道如何先下载它。
【问题讨论】:
-
"我不知道怎么先下载" -- 不用
-u和-f试试。 -
是因为
/v2tail。您应该按照说明首先运行go mod init以正确初始化您的项目以与模块一起使用。见github.com/gofiber/fiber#%EF%B8%8F-installation
标签: go caching go-get go-fiber