# Failed to run 'elixir' command error in vs code

**URL:** <https://forum.elixirforum.com/t/failed-to-run-elixir-command-error-in-vs-code/31047>\
**Category:** Questions\
**Tags:** vscode, elixir-ls\
**Created:** [April 28, 2020, 2:47am UTC](https://forum.elixirforum.com/t/failed-to-run-elixir-command-error-in-vs-code/31047 "2020-04-28T02:47:55Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![mrroot5](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mrroot5/32/25311_2.png) [@mrroot5](https://forum.elixirforum.com/u/mrroot5)\
**Post date:** [February 28, 2023, 11:36am UTC](https://forum.elixirforum.com/t/failed-to-run-elixir-command-error-in-vs-code/31047/24 "2023-02-28T11:36:51Z")

</div>

I have **Manjaro** with **asdf** and **zsh**.

In my home I creatd a `.profile` file with this content:

```elixir
echo 'export PATH="$PATH:/home/<user>/.asdf/shims:/home/<user>/.asdf/bin"' > ~/.profile

```

Just change `<user>` by your user name and it should work. If you already have this file I suggest you to do a **backup**.

---

_[View the full topic](https://forum.elixirforum.com/t/failed-to-run-elixir-command-error-in-vs-code/31047)._
