Elixir only works in the C:\Windows\System32 directory

Elixir only works in the C:\Windows\System32 directory.
For example:
how i can fix it?

most likely your path is set incorrectly, make sure elixir exe path is added to PATH in environment variables.

1 Like

what you mean by elixir exe? I added C:\Program Files (x86)\Elixir\bin and C:\Program Files\erl-23.1\bin in my PATH. It’s right?

Also, if i write just elixir in the console - it will work

BTW You have a version mismatch… Erlang/OTP 22, Elixir → Erlang/OTP 21

So, i downgraded Erlang/OTP from 22 to 21, but that didn’t solve my problem.

Solution: add C:\WINDOWS\System32 in path

here I am with the same error, how did you manage to solve?

Ensure the location you installed elixir is included in your PATH environment variable.