Installing elm on Fedora

How to install elm on fedora

I started by using yarn to add elm as a global package yarn global add elm , which was successfully added but I could not get an executable elm from the terminal so I resorted to using npm in this case ( I still don’t understand why this does not work)

So lets use npm for the installation, run the following command

$ npm i -g elm

This installs a couple of elm packages elm-repl , elm-reactor , elm-make and elm-package

To confirm that everything is okay run the elm repl on your terminal

$ elm-repl

You are most likely going to get an error due to some uninstalled libraries:

/home/username/.nvm/versions/node/v9.2.0/lib/node_modules/elm/Elm-Platform/0.18.0/.cabal-sandbox/bin/elm-repl: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

To solve this, you need to install some ncurses libries

$ sudo dnf install ncurses-compat-libs

Now you are ready to go!!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.