problem with starting to use pug/jade

62 views
Skip to first unread message

Денис Мухортов

unread,
May 7, 2021, 1:41:23 PM5/7/21
to golang-nuts
I started using the library https://github.com/Joker/jade, never used go generate before. And now when trying to create hello.jade, I get the output ' "jade": exec: "jade": executable file not found in %PATH%'.
Does this mean that I need to specify pug in the global variables, or do I need to do something in the library itself

Brian Candler

unread,
May 8, 2021, 3:51:55 AM5/8/21
to golang-nuts
You need to get to the point where typing "jade" at the shell runs the jade executable, like this.

Did you install the jade executable?  The error says the jade executable was not found in your search path.   If you let go install the jade binary in its usual location ($GOBIN) this implies $GOBIN isn't in your PATH.

Under Linux, I'd add ~/go/bin to $PATH.  Sorry but I don't know what the equivalent is for Windows.

Brian Candler

unread,
May 8, 2021, 4:09:19 AM5/8/21
to golang-nuts
Note: if "go get github.com/Joker/jade/cmd/jade" gives this error:
go get: module github.com/Joker/jade@upgrade found (v1.0.0), but does not contain package github.com/Joker/jade/cmd/jade

Then see this issue: https://github.com/Joker/jade/issues/38

I think you're supposed to use "go install" rather than "go get" these days.  This should work:
Reply all
Reply to author
Forward
0 new messages