View Source mix nodelix.install (nodelix v1.0.0-alpha.5)

Installs Node.js.

Warning

This is a pre-release version. As such, anything may change at any time, the public API should not be considered stable, and using a pinned version is recommended.

$ mix nodelix.install
$ mix nodelix.install --if-missing

By default, it installs 20.10.0 but you can configure it in your config files, such as:

config :nodelix, :version, "20.10.0"

Options

* `--runtime-config` - load the runtime configuration
  before executing command

* `--if-missing` - install only if the given version
  does not exist