O'Reilly logo

Programming Elm by Jeremy Fairbank

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Install the Elm Compiler

The Elm compiler is built in Haskell.[46] You can download installation packages for macOS and Windows via the official Elm docs.[47] If you use a Linux distribution, or like to control installations through a package manager, you can install Elm globally via npm with this command:

 npm install -g elm

The npm package provides the appropriate pre-built binary depending on your operating system.

Your Elm installation should include a few command-line tools:

  • elm repl - try out Elm in an interactive shell
  • elm init - bootstrap a new Elm project with elm.json and a src directory
  • elm reactor - run a development server to build Elm applications
  • elm make - compile Elm files
  • elm install - install Elm packages
  • elm publish - publish ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required