# Downgrade to v18

**URL:** <https://discourse.elm-lang.org/t/downgrade-to-v18/2005>\
**Category:** Learn\
**Created:** [September 18, 2018, 10:17pm UTC](https://discourse.elm-lang.org/t/downgrade-to-v18/2005 "2018-09-18T22:17:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dschinkel](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dschinkel/32/1306_2.png) [@dschinkel](https://discourse.elm-lang.org/u/dschinkel)\
**Post date:** [September 18, 2018, 10:17pm UTC](https://discourse.elm-lang.org/t/downgrade-to-v18/2005/1 "2018-09-18T22:17:21Z")

</div>

What’s the easiest way to downgrade to Elm 18. I had 18 installed initially via npm. Then ran homebrew to upgrade to 19.

But what’s the best path backwards to 18 in terms of global install and binary for elm back to 18 on my machine? I need to put back in place what I had including the binary install to 18.

---

<div class="post-metadata">

**Author:** ![avh4](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/avh4/32/97_2.png) [@avh4](https://discourse.elm-lang.org/u/avh4)\
**Post date:** [September 19, 2018, 1:23am UTC](https://discourse.elm-lang.org/t/downgrade-to-v18/2005/2 "2018-09-19T01:23:22Z")

</div>

Does homebrew have a way to install older versions of packages? If so, that might be worth considering.

If you want Elm installed globally, I would probably recommend uninstalling the homebrew version of Elm and using the following to switch when you need to

```bash
npm install -g elm@elm0.18.0
npm install -g elm@elm0.19.0

```

Personally, I tend to use npm to locally install elm (and elm-test, elm-format) in the correct versions for each project (adding them as dev dependencies in the package.json ([example](https://github.com/avh4/elm-color/blob/master/package.json))), and then I can use `npx elm` to run the version that’s install locally for whatever project I’m currently in.

---

<div class="post-metadata">

**Author:** ![mfeineis](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/mfeineis/32/104_2.png) [@mfeineis](https://discourse.elm-lang.org/u/mfeineis)\
**Post date:** [September 19, 2018, 5:20am UTC](https://discourse.elm-lang.org/t/downgrade-to-v18/2005/3 "2018-09-19T05:20:32Z")

</div>

My advice is not installing elm globally at all. I do `npm install --save elm@0.19` on a per project basis and use either `npx elm` from the command line or just use npm scripts. Way easier to wrap my head around.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [September 29, 2018, 5:20am UTC](https://discourse.elm-lang.org/t/downgrade-to-v18/2005/4 "2018-09-29T05:20:34Z")

</div>

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