当mix无法启动时,使用erlang OTP 25重新编译elixir模块

jei2mxaa  于 7个月前  发布在  Erlang
关注(0)|答案(1)|浏览(116)

每当我使用“mix deps.clean”、“mix deps.get”或任何mix命令时,我都会得到以下错误:

15:18:28.936 [error] beam\beam_load.c(86): Error loading module 'Elixir.Code.Formatter':
  lambda already defined for label 747. To fix this, please recompile this module with an OTP 25 compiler.

15:18:28.936 [error] Loading of c:/ProgramData/chocolatey/lib/Elixir/lib/elixir/ebin/Elixir.Code.Formatter.beam failed: :badfile

** (UndefinedFunctionError) function Code.Formatter.locals_without_parens/0 is undefined (module Code.Formatter is not available)
    (elixir 1.13.3) Code.Formatter.locals_without_parens()
    (elixir 1.13.3) lib/code/normalizer.ex:22: Code.Normalizer.normalize/2
    (elixir 1.13.3) lib/code.ex:1107: Code.quoted_to_algebra/2

字符串
我尝试用chocolatey更新,删除和重新安装erlang和elixir,没有效果。我如何重新编译elixir模块?
谢谢你,谢谢

ssgvzors

ssgvzors1#

我有同样的问题与 Elixir 降级.对我来说的解决方案是太删除文件夹“C:\Users\USERNAME\AppData\Local\mix”.操作系统是Windows 10

相关问题