问题描述
我已按照以下说明进行操作: 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.
我该如何解决?
解决方法
您可能有不兼容的 Erlang/Elixir 版本。
使用 asdf 安装可能是最可靠的方法。
- https://github.com/asdf-vm/asdf
- https://github.com/asdf-vm/asdf-erlang
- https://github.com/asdf-vm/asdf-elixir
请务必阅读 Erlang asdf 插件的“Before asdf install
”部分。