# Where are the installed packages?

**URL:** <https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977>\
**Category:** Learn\
**Created:** [February 22, 2021, 12:58pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977 "2021-02-22T12:58:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnQWang](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/johnqwang/32/3812_2.png) [@JohnQWang](https://discourse.elm-lang.org/u/JohnQWang)\
**Post date:** [February 22, 2021, 12:58pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/1 "2021-02-22T12:58:44Z")

</div>

The [Beginning Elm](https://elmprogramming.com/elm-install.html) said they are in my home directory(ie., `~/.elm`), but I cann’t find them there. Are the location changed in elm-0.19?

Another question(sorry for packing 2 questions in one post): How to install a package using its offline zip file?

The question come from a situation I just got into: I cannot `elm install` a package(it’s elm-ui BTW) due to some reasons, but I can mannually download the zip file. So I guess I could mannually copy this zip file to the local installed package repo to complete the `elm install` process.

---

<div class="post-metadata">

**Author:** ![malaire](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@malaire](https://discourse.elm-lang.org/u/malaire)\
**Post date:** [February 22, 2021, 1:30pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/2 "2021-02-22T13:30:49Z")

</div>

> [@JohnQWang](#):
>
> The [Beginning Elm](https://elmprogramming.com/elm-install.html) said they are in my home directory(ie., `~/.elm` ), but I cann’t find them there. Are the location changed in elm-0.19?

They will be under `~/.elm` unless you have changed `ELM_HOME` to something else. To be more specific they are at `~/.elm/0.19.1/packages` if using 0.19.1 version. Note that that directory is only created when you install first package.

> [@JohnQWang](#):
>
> Another question(sorry for packing 2 questions in one post): How to install a package using its offline zip file?

That is not supported by Elm compiler. Manually copying package doesn’t work because you would also need to update `~/.elm/0.19.1/packages/registry.dat` which uses undocumented binary format.

> [@JohnQWang](#):
>
> The question come from a situation I just got into: I cannot `elm install` a package(it’s elm-ui BTW) due to some reasons, …

What error you get when trying to install package?

---

<div class="post-metadata">

**Author:** ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)\
**Post date:** [February 22, 2021, 1:49pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/3 "2021-02-22T13:49:03Z")

</div>

> [@JohnQWang](#):
>
> elm-ui

Just checking - are you using the right elm-ui? [elm-ui 1.1.8](https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/)

There is an older unrelated `elm-ui`: [GitHub - gdotdesign/elm-ui: UI library for making web applications with Elm](https://github.com/gdotdesign/elm-ui), which people sometimes get mixed up with, and I don’t think it is on the Elm managed packages, which might explain why it does not install.

Are you running

```auto
> elm install mdgriffith/elm-ui

```

Surprised if this does not work as it is a very popular package.

---

<div class="post-metadata">

**Author:** ![JohnQWang](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/johnqwang/32/3812_2.png) [@JohnQWang](https://discourse.elm-lang.org/u/JohnQWang)\
**Post date:** [February 22, 2021, 1:52pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/4 "2021-02-22T13:52:02Z")

</div>

Got it! thank you very much. Regarding the failure of installing package, it’s turned out to be a network issue. I just tried several more times and it’s done 😉

---

<div class="post-metadata">

**Author:** ![JohnQWang](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/johnqwang/32/3812_2.png) [@JohnQWang](https://discourse.elm-lang.org/u/JohnQWang)\
**Post date:** [February 22, 2021, 1:55pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/5 "2021-02-22T13:55:08Z")

</div>

The installing issue is caused by my poor internet connection.  
Yes the `gdotdesign/elm-ui` did confuse me at first but seconds later I realized its not the same guy 😉

---

<div class="post-metadata">

**Author:** ![malaire](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@malaire](https://discourse.elm-lang.org/u/malaire)\
**Post date:** [February 22, 2021, 1:55pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/6 "2021-02-22T13:55:46Z")

</div>

Yes, a major problem with Elm currently is that packages can only be installed online from [https://package.elm-lang.org/](https://package.elm-lang.org/) .

---

<div class="post-metadata">

**Author:** ![JohnQWang](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/johnqwang/32/3812_2.png) [@JohnQWang](https://discourse.elm-lang.org/u/JohnQWang)\
**Post date:** [February 22, 2021, 2:10pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/7 "2021-02-22T14:10:49Z")

</div>

As a programmer living in mainland China, I’m used to praying for it not being an issue as they will arbitrarily block websites or online repositories sometimes.

---

<div class="post-metadata">

**Author:** ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)\
**Post date:** [February 22, 2021, 3:10pm UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/8 "2021-02-22T15:10:57Z")

</div>

It is another good reason for having a more federated package distribution system, as well as ability to make it easy to work with offline caches of elm packages. You can download this cache of Elm packages, and put them under your `~/.elm` folder:

```auto
curl -O https://static.lamdera.com/cache/elm-package-cache-2021-02-13.zip && unzip -p elm-package-cache-2021-02-13.zip | tar xf -

```

---

<div class="post-metadata">

**Author:** ![JohnQWang](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/johnqwang/32/3812_2.png) [@JohnQWang](https://discourse.elm-lang.org/u/JohnQWang)\
**Post date:** [February 23, 2021, 12:52am UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/9 "2021-02-23T00:52:25Z")

</div>

Beautiful! this tip is definitly wanted by people like me someday. bookmarked.

---

<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:** [March 5, 2021, 12:53am UTC](https://discourse.elm-lang.org/t/where-are-the-installed-packages/6977/10 "2021-03-05T00:53:02Z")

</div>

Closed on March 5, 2021, 12:53am UTC

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