DEV Community

Discussion on: Build a REST API with Golang and MongoDB - Fiber Version

Collapse
 
surajtecho profile image
surajtecho

when i follow this doc and implemented it run succesfully again when i close my pc and run again
its showing
main.go:6:5: cannot find package "github.com/gofiber/fiber/v2" in any of:
C:\Program Files\Go\src\github.com\gofiber\fiber\v2 (from $GOROOT)
C:\Users\Techolution\go\src\github.com\gofiber\fiber\v2 (from $GOPATH)

it is happening again and again i tried to build and run it run succesfully when i tried to close my pc and run again its showing same

Collapse
 
malomz profile image
Demola Malomo

Hi @surajtecho
According to the error, It looks like the fiber package is not installed.

try reinstalling the package using: "go get -u github.com/gofiber/fiber/v2"

Some comments have been hidden by the post's author - find out more