Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to yarn build #21

Closed
knubbl1983 opened this issue Aug 22, 2021 · 6 comments
Closed

Error when trying to yarn build #21

knubbl1983 opened this issue Aug 22, 2021 · 6 comments

Comments

@knubbl1983
Copy link

knubbl1983 commented Aug 22, 2021

I get the following error when executing yarn build.

Any idea what im doing wrong?

/bin/sh: 1: mage: not found
error Command failed with exit code 127.

mage -version shows:

Mage Build Tool v1.11.0-2-g4cf3cfc
Build Date: 2021-08-22T20:05:12+02:00
Commit: 4cf3cfc
built with: go1.11.6

@whbruce
Copy link

whbruce commented Aug 22, 2021

You need to install mage. See Ubuntu build instructions.

@knubbl1983
Copy link
Author

mage -version gives me information about this. see my first comment.
i think its already installed.

@atifali
Copy link
Contributor

atifali commented Aug 25, 2021

looks like this might be a problem with where yarn build looks for the executables.

can you try mage build:backend to build the backend manually.

@knubbl1983
Copy link
Author

pi@raspberrypi:/var/lib/grafana/mqtt-datasource $ mage build:backend
Error determining list of magefiles: failed to list non-mage gofiles: exit status 1: go: finding github.com/go-logfmt/logfmt v0.3.0

this is what happend when i do mage build:backend

@riptl
Copy link

riptl commented Sep 12, 2021

I've had zero problems with mage on latest master. I think this can be closed.

@atifali
Copy link
Contributor

atifali commented Oct 5, 2021

Alright then closing now! Thanks for reporting @terorie 👍

@atifali atifali closed this as completed Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants