1. elm
Installer for Elm: just downloads the binary into node_modules
elm
Package: elm
Created by: elm
Last modified: Thu, 25 Apr 2024 13:41:15 GMT
Version: 0.19.1-6
License: BSD-3-Clause
Downloads: 125,952
Repository: https://github.com/elm/compiler

Install

npm install elm
yarn add elm

Elm Installer

Elm is a functional programming language that compiles to JavaScript.

Head over to The Official Guide to start learning Elm!


What is this package for?

For normal installs, I reccomend using the instructions here instead. This package is only for people who enjoy using npm even when it is not necessary, or for people who want to use npm for certain scenarios such as:

Multiple versions

People using Elm at work may use different versions of Elm in different projects. They can run npm install [email protected] in each project and use the binary at ./node_modules/.bin/elm for compilation.

Continuous integration

The npm installer works for this, but there are faster and more reliable options:

  1. You can download elm directly from GitHub with this script. This allows you to skip npm entirely.
  2. Many continuous integration have ways to cache files (example) to make builds faster and more reliable. This is the ideal setup.

That said, it works to use the npm installer on CI if you prefer that option.


Install Locally

The following command should download the latest Elm 0.19.1 binary:

npm install [email protected]

You should be able to run ./node_modules/bin/elm --version within your project and see 0.19.1. Now you can compile with ./node_modules/bin/elm make src/Main.elm and not disrupt other packages.

Use npm install [email protected] or npm install [email protected] for earlier versions.

Note: The latest-X.Y.Z convention is used in case we need to publish patches for the npm installer within a given Elm release. For example, say npm decides that some transitive dependency is not secure. Nothing is changing about Elm or the binaries, but we need to publish a new npm installer that fixes this issue.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin