# Custom package installation from github

**URL:** <https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759>\
**Category:** Learn\
**Created:** [April 16, 2024, 10:58am UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759 "2024-04-16T10:58:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SANTMAN](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/santman/32/5101_2.png) [@SANTMAN](https://discourse.elm-lang.org/u/SANTMAN)\
**Post date:** [April 16, 2024, 10:58am UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759/1 "2024-04-16T10:58:33Z")

</div>

Hi All,

I’m having trouble installing custom packages from github. Need some help on how to do it correctly. All the answers on the internet for this elm package management are stale and needs to be corrected.

I’m trying to install [GitHub - myrho/dive: Build Prezi-like Presentations in Elm](https://github.com/myrho/dive) package to playaround with the Presentation creation. Instruction provided in the readme page of this repo doesn’t work.

Also if i try the command

```bash
elm install myrho/dive

```

This fails because of the version mismatch errors. So I forked the repos [GitHub - Santhosh-KS/dive: Build Prezi-like Presentations in Elm](https://github.com/Santhosh-KS/dive) and just bumped the version on the elm-package.json file to 0.19.1. But now I get the error as follows

```bash
$ elm install Santhosh-KS/dive

-- UNKNOWN PACKAGE -------------------------------------------------------------

I cannot find a package named Santhosh-KS/dive.

I looked through https://package.elm-lang.org for packages with similar names
and found these:

    elm/file
    elm/time
    elm/core
    elm/svg

Maybe you want one of these instead?

```

Can someone guide me on, how to get the custom packages installed from github? (the correct way)

---

<div class="post-metadata">

**Author:** ![lydell](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/lydell/32/178_2.png) [@lydell](https://discourse.elm-lang.org/u/lydell)\
**Post date:** [April 16, 2024, 11:02am UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759/2 "2024-04-16T11:02:33Z")

</div>

You need to not only fork the GitHub repo, but also `elm publish` it so it ends up on [https://package.elm-lang.org/](https://package.elm-lang.org/)

---

<div class="post-metadata">

**Author:** ![SANTMAN](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/santman/32/5101_2.png) [@SANTMAN](https://discourse.elm-lang.org/u/SANTMAN)\
**Post date:** [April 16, 2024, 11:10am UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759/3 "2024-04-16T11:10:46Z")

</div>

Thank you @lydell for the response. Looks like publishing is not so straight forward! 🙂

```bash
elm publish
-- UNPUBLISHABLE ---------------------------------------------------------------

I cannot publish applications, only packages!

```

---

<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:** [April 16, 2024, 11:34am UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759/4 "2024-04-16T11:34:43Z")

</div>

Its an application not a package, so you don’t need to install it. Just clone and run locally.

> elm reactor

Might be enough to run it?

But this looks like it is Elm 0.18 code, so you will need to do some work to upgrade it to 0.19. 0.19 uses an `elm.json` file instead of the `elm-package.json` file and other differences too.

---

<div class="post-metadata">

**Author:** ![SANTMAN](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/santman/32/5101_2.png) [@SANTMAN](https://discourse.elm-lang.org/u/SANTMAN)\
**Post date:** [April 16, 2024, 12:23pm UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759/5 "2024-04-16T12:23:10Z")

</div>

Thank you @rupert for your response I will give it a try and get back with the solution or more quries 🙂

---

<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:** [April 16, 2024, 12:59pm UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759/6 "2024-04-16T12:59:59Z")

</div>

Also - I prefered elm-dive-svg, so check that out too. I still use it for presentations - make drawings in Inkscape, add red numbered boxes, and you get a nice simple tool that you can navigate around a set of slides with.

Another trick is to break up text and render it as paths which you can do with Inscape. This makes text avoid sub-pixel rendering hints, and makes the animations a bit smoother when text is involved. Mostly you will be using quite big text when presenting with a projector, so not getting sub-pixel hinting isn’t so bad. Screen resolutions are getting crazy big these days, so these optimisations are starting to matter less anyway.

---

<div class="post-metadata">

**Author:** ![SANTMAN](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/santman/32/5101_2.png) [@SANTMAN](https://discourse.elm-lang.org/u/SANTMAN)\
**Post date:** [April 17, 2024, 12:12pm UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759/7 "2024-04-17T12:12:45Z")

</div>

Hi @rupert Do you have an example presentation to follow? Would you mind sharing it if you don’t mind 🙂

---

<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:** [April 27, 2024, 12:13pm UTC](https://discourse.elm-lang.org/t/custom-package-installation-from-github/9759/8 "2024-04-27T12:13:25Z")

</div>

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