mikejm

mikejm

I just tried installing Elixir to a new Windows computer using ‘choco install elixir’ from an elevated command prompt, which is one of the recommended methods:

This installed it okay. If I try running the command a second time, it tells me: “Warning: Elixir v1.17.3 already installed”. So it is installed.

But running the command iex or elixir --v or mix tells me each of these “is not recognized as an internal or external command”.

By contrast erl gives me an “Eshell” successfully so that seems to be working.

Is there some manual step needed to set Elixir commands to PATH? I can do this here: What is Windows PATH and How Do You Add to and Edit it? - Make Tech Easier

I see I have a C:\Program Files\Erlang OTP folder that seems to have that and obviously that is working if erl works.

But how do I make the elixir and iex and mix commands work?

According to this I presume I should have a C:\Program Files\Elixir\bin to add to PATH but I don’t have that folder at all.

Is choco a defective method? Or what?

Edit: I have tried to run choco install elixir --force to force a reinstall and interestingly I am getting a 503 error saying servers are at capacity. So I presume choco is broken right now. I will try another method.

Showing Posts 1 to 3

Hermanverschooten

Hermanverschooten

I do not use Windows. I presume though that this choco command installed elixir somewhere on your harddisk.
Try and find that path and add it to PATH environment variable.
That should work.
Or check out @wojtekmach 's installers on https://elixir-install.org/

cmo

cmo

Often you need to call refreshenv after installing things with chocolatey, or close the shell and open a new one

In my experience, scoop is much more enjoyable than chocolatey.

glensmale

glensmale

This is old however I will answer this anyway.

When running the command “choco install elixir -y” on Windows 11. Chocolatey will install elixir in this folder: “C:\ProgramData\chocolatey\lib\elixir\tools\bin”

Add this to your system path: “C:\ProgramData\chocolatey\lib\elixir\tools\bin”

Now check the installed version with: “elixir -v”

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
kpanic
Hi everyone, I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding. I sta...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
asweet-confluent
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews