I’m getting “mix: command not found” when running sudo deps.get.
Running mix deps.get doesn’t give the error, yet I’m dealing with permission issues without sudo.
Is this expected behavior?
What are the permission errors you’re getting?
You should never run mix
with sudo
so there are probably some borked permissions in deps/
or _build/
directories.
I’m trying to build in root folder. Getting permission denied errors.
If you’re running Elixir and Mix via ASDF, that’s probably why. ASDF only installs stuff locally, so your SU is not aware of mix
.
I’m trying to build in root folder. Getting permission denied errors.
Why are you trying to build in root folder? If you do have a specific reason for this, then you could try giving the sudo ...
command the specific path to the mix binary, or adding $HOME/.asdf/shims
to the SU’s $PATH
.
Edit: actually, none of these will work. You would need to first install ASDF for your SU.