我已按照以下说明进行操作: https://elixir-lang.org/install.html
但是当我尝试执行 mix
时,我看到以下错误:
╰─❯ mix --help
** (Mix) The task "deps.loadpaths" could not be found
和
╰─❯ mix new app
** (Mix) Application name must start with a letter and have only lowercase letters, numbers and underscore, got: "app". The application name is inferred from the path, if you'd like to explicitly name the application then use the "--app APP" option.
我该如何解决?
答案 0 :(得分:2)
您可能有不兼容的 Erlang/Elixir 版本。
使用 asdf 安装可能是最可靠的方法。
请务必阅读 Erlang asdf 插件的“Before asdf install
”部分。