# Attempting install Node Mixin - error

**URL:** <https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48>\
**Category:** Mixins\
**Created:** [March 18, 2021, 2:05pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48 "2021-03-18T14:05:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregGT](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/greggt/32/29_2.png) [@gregGT](https://discuss.prometheus.io/u/gregGT)\
**Post date:** [March 18, 2021, 2:05pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/1 "2021-03-18T14:05:10Z")

</div>

I’m attempting to install Node Mixin, as described at  
[node\_exporter/docs/node-mixin at master · prometheus/node\_exporter · GitHub](https://github.com/prometheus/node_exporter/tree/master/docs/node-mixin).

The three "go get . . . " commands executed without error, however jb install results in a “command not found”

Any suggestions on moving forward with this install?

Thanks

---

<div class="post-metadata">

**Author:** ![roidelapluie](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/roidelapluie/32/6_2.png) [@roidelapluie](https://discuss.prometheus.io/u/roidelapluie)\
**Post date:** [March 18, 2021, 2:34pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/2 "2021-03-18T14:34:05Z")

</div>

Do you have jb in your path? Can you try `go install` instead of `go get` ?

---

<div class="post-metadata">

**Author:** ![gregGT](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/greggt/32/29_2.png) [@gregGT](https://discuss.prometheus.io/u/gregGT)\
**Post date:** [March 18, 2021, 3:21pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/3 "2021-03-18T15:21:18Z")

</div>

Thanks @roidelapluie.

go install . . . worked on all three lines (no error anyway)

go env returned, among all the other env info:

GOPATH="/storage/home/hcodaman1/gbeyer3/go"  
GOROOT="/usr/lib/golang"

Not sure which should be in my path, but neither one is.

Nevertheless, I cd’d to both, executed  
“jb install” which again resulted in command not found.

---

<div class="post-metadata">

**Author:** ![roidelapluie](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/roidelapluie/32/6_2.png) [@roidelapluie](https://discuss.prometheus.io/u/roidelapluie)\
**Post date:** [March 19, 2021, 8:59am UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/4 "2021-03-19T08:59:28Z")

</div>

> [@gregGT](#):
>
> /storage/home/hcodaman1/gbeyer3/go

You could try `export PATH=$PATH:$GOPATH/bin` before running the commands.

---

<div class="post-metadata">

**Author:** ![gregGT](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/greggt/32/29_2.png) [@gregGT](https://discuss.prometheus.io/u/gregGT)\
**Post date:** [March 19, 2021, 1:54pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/5 "2021-03-19T13:54:24Z")

</div>

added /storage/home/hcodaman1/gbeyer3/go to path. Still getting command not found for jb install. Which is crazy, as it shows in a ls:

[gbeyer3@gbeyer-test /storage/home/hcodaman1/gbeyer3/go/bin]$ll  
total 20202  
-rwxr-xr-x 1 gbeyer3 pace-admins 10046085 Mar 19 09:50 jb  
-rwxr-xr-x 1 gbeyer3 pace-admins 6075177 Mar 19 09:50 jsonnet  
-rwxr-xr-x 1 gbeyer3 pace-admins 4296713 Mar 19 09:50 jsonnetfmt

---

<div class="post-metadata">

**Author:** ![gregGT](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/greggt/32/29_2.png) [@gregGT](https://discuss.prometheus.io/u/gregGT)\
**Post date:** [March 19, 2021, 2:04pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/6 "2021-03-19T14:04:14Z")

</div>

OK, I figured out – the documentation is wrong at the first Grafana URL I referenced ☹

The command SHOULD be ./jb install At least I get _something_ to happen with ./

BUT I still get a new error:

[gbeyer3@gbeyer-test /storage/home/hcodaman1/gbeyer3/go/bin]$./jb install  
jb: error: failed to load jsonnetfile: open /storage/home/hcodaman1/gbeyer3/go/bin/jsonnetfile.json: no such file or directory

It seems I’m missing .json file(s) ?

---

<div class="post-metadata">

**Author:** ![roidelapluie](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/roidelapluie/32/6_2.png) [@roidelapluie](https://discuss.prometheus.io/u/roidelapluie)\
**Post date:** [March 19, 2021, 11:25pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/7 "2021-03-19T23:25:52Z")

</div>

> [@gregGT](#):
>
> /storage/home/hcodaman1/gbeyer3/go/bin

You would need to go to where you cloned prometheus, then run `/storage/home/hcodaman1/gbeyer3/go/bin/jb`.

---

<div class="post-metadata">

**Author:** ![gregGT](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/greggt/32/29_2.png) [@gregGT](https://discuss.prometheus.io/u/gregGT)\
**Post date:** [March 22, 2021, 2:51pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/8 "2021-03-22T14:51:52Z")

</div>

I _think_ this is what you mean. Prometheus is installed (cloned?) in /gbeyer3/prometheus-2.24.1.linux-amd64

Within that dir I executed ./storage/home/hcodaman1/gbeyer3/go/bin/jb

ls -l shows that the jb file exists and is executable, still I get a no such file or directory.

[gbeyer3@gbeyer-test /storage/home/hcodaman1/gbeyer3/prometheus-2.24.1.linux-amd64]ls -l /storage/home/hcodaman1/gbeyer3/go/bin/jb -rwxr-xr-x 1 gbeyer3 pace-admins 10046085 Mar 19 09:50 /storage/home/hcodaman1/gbeyer3/go/bin/jb [gbeyer3@gbeyer-test /storage/home/hcodaman1/gbeyer3/prometheus-2.24.1.linux-amd64]./storage/home/hcodaman1/gbeyer3/go/bin/jb  
-bash: ./storage/home/hcodaman1/gbeyer3/go/bin/jb: No such file or directory

---

<div class="post-metadata">

**Author:** ![roidelapluie](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/roidelapluie/32/6_2.png) [@roidelapluie](https://discuss.prometheus.io/u/roidelapluie)\
**Post date:** [March 22, 2021, 3:26pm UTC](https://discuss.prometheus.io/t/attempting-install-node-mixin-error/48/9 "2021-03-22T15:26:42Z")

</div>

Use ` /storage/home/hcodaman1/gbeyer3/go/bin/jb` (without the dot).
