# 'mage' is not recognized as an internal or external command

**URL:** <https://discuss.elastic.co/t/mage-is-not-recognized-as-an-internal-or-external-command/217082>\
**Category:** Beats\
**Created:** [January 29, 2020, 10:21pm UTC](https://discuss.elastic.co/t/mage-is-not-recognized-as-an-internal-or-external-command/217082 "2020-01-29T22:21:57Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)\
**Post date:** [February 4, 2020, 10:13pm UTC](https://discuss.elastic.co/t/mage-is-not-recognized-as-an-internal-or-external-command/217082/21 "2020-02-04T22:13:11Z")

</div>

From the error messages in your screenshot, it looks like you may be using an older version of Go, possibly version `1.6`.

Please make sure the version of Go you have installed matches the version specified in `.go-version`.

```auto
go version

cd go/src/github.com/elastic/beats
cat .go-version

```

Both versions should currently be `1.13.7` for the master branch.

If you need to install a newer version of Go, I'd recommend using the `gvm` project to manage multiple versions of Go.

`https://github.com/andrewkroh/gvm`

---

<div class="post-metadata">

**Author:** ![Yiw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yiw/32/46202_2.png) [@Yiw](https://discuss.elastic.co/u/Yiw)\
**Post date:** [February 6, 2020, 6:51pm UTC](https://discuss.elastic.co/t/mage-is-not-recognized-as-an-internal-or-external-command/217082/22 "2020-02-06T18:51:40Z")

</div>

Hi Michael, very appreciate for your patience. It works!!! Hope you have a great day!

---

<div class="post-metadata">

**Author:** ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)\
**Post date:** [February 6, 2020, 7:35pm UTC](https://discuss.elastic.co/t/mage-is-not-recognized-as-an-internal-or-external-command/217082/23 "2020-02-06T19:35:31Z")

</div>

That's great to hear things are working both on Linux & Windows!

---

<div class="post-metadata">

**Author:** ![Yiw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yiw/32/46202_2.png) [@Yiw](https://discuss.elastic.co/u/Yiw)\
**Post date:** [February 6, 2020, 7:54pm UTC](https://discuss.elastic.co/t/mage-is-not-recognized-as-an-internal-or-external-command/217082/24 "2020-02-06T19:54:23Z")

</div>

Yeah! I was stuck here for a while. So excited it's working on both. It seems someone need to update the documentation based on your solution. Very clear and detailed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 5, 2020, 9:54pm UTC](https://discuss.elastic.co/t/mage-is-not-recognized-as-an-internal-or-external-command/217082/25 "2020-03-05T21:54:31Z")

</div>

Closed on March 5, 2020, 9:54pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

[Previous page](https://discuss.elastic.co/t/mage-is-not-recognized-as-an-internal-or-external-command/217082.md?page=1)
