erlangrebar

How do I tell rebar3 to use werl on Windows?


This may apply to any rebar commands but it is mostly about rebar shell.

By default rebar uses erl and this might be clunky on Windows shells.


Solution

  • According to this source

    You can run rebar3 (and any other escript) with werl by specifying the ESCRIPT_EMULATOR environment variable. In a Git bash that would be:

    ESCRIPT_EMULATOR=werl rebar3 shell