Autoplay

    Install the Elm Platform command-line tools

    Murphy RandleMurphy Randle

    Getting Elm installed. We will install the Elm CLI with npm. This gives us access to elm-repl and elm-reactor. The repl lets us play with expressions at the command-line, and reactor starts a development server which builds Elm files on-demand.

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Transcript

    Transcript

    00:00 Here I am in an empty folder and I want to get Elm installed. Elm's binaries are available through npm. I can install them just by typing $ npm install -g elm. Then I wait for a while. There it is. Now I can type elm. It should be in my path.

    00:16 I can also type elm-reactor to start the dev server, or I can type elm-repl to start a Read-eval-print-loop, and inside of here I can test it out, foo = 1, looks good, bar = 2, and foo + bar = 3. We have elm installed.

    Discuss

    Discuss