fresh icon indicating copy to clipboard operation
fresh copied to clipboard

fresh: command not found on windows

Open ghost opened this issue 8 years ago • 6 comments

I am trying to run this on Windows 7. It returns this: fresh: command not found

I have a config file. I don't know any other step to run it even after reading readme file. And i did this; go get -u github.com/pilu/fresh

What should i do to simply run it.

ghost avatar Feb 23 '17 00:02 ghost

This is probably due to your $GOPATH not being configured properly. Try echo $GOPATH and see if that includes the directory where fresh was installed.

timkellogg avatar Apr 20 '17 16:04 timkellogg

I think go get install packages to the same location. That is not that. I will check to see anyways.

ghost avatar Apr 21 '17 06:04 ghost

So it is not about paths.

ghost avatar May 15 '17 18:05 ghost

not runed fresh GoPATH is set C:\Users\mahdi>echo %GOPATH% C:\Users\mahdi\go

Mahdihp avatar Feb 26 '18 11:02 Mahdihp

I did it by giving full file path to the main.go file inside the fresh folder go run C:/go-Work/src/github.com/pilu/fresh/main.go

bluesky15 avatar Jul 19 '18 15:07 bluesky15

I fixed mine by adding the path to the go bin folder where the fresh binary is stored on my PC to the PATH environment variable. My path was C:/Users//go/bin. Restart powershell after too.

ikeohachidi avatar Nov 10 '19 13:11 ikeohachidi