Hello everyone, I created new project with mix phx.new projectName command but when its ask Fetch and install dependencies? [Yn] and I hit enter then it will get stuck, I have waited for hours, but it wont work, then when I break out of it and try to run mix deps.get then I will get this error (Mix) Could not find a Mix.Project, please ensure you are running Mix in a directory with a mix.exs file then when I run this cd projectName and then run mix deps.get then it will work, but if I tried to compile the project it will get stuck here C:\Users\seyi\Desktop\EL\new>mix compile ==> file_system Compiling 7 files (.ex) Generated file_system app ==> decimal Compiling 4 files (.ex) Generated decimal app ==> mime Compiling 1 file (.ex) Generated mime app ==> nimble_options Compiling 3 files (.ex) Generated nimble_options app
Please am new to elixir I will really appriciate your help, Thanks
So Iβd either upgrade elixir to 1.15 or downgrade Erlang/OTP to 25. Iβd guess that upgrading Elixir is probably easier, although I havenβt tried using Elixir on Windows.
I just want to add that you should use snake_case (mix phx.new project_name) instead of camelCase (mix phx.new projectName) when generating your projects.
Iβm not just saying that to be pedantic (although it does match the Elixir style guideβ¦), but the project auto-generates a lot of stuff (e.g. when creating modules) and I could see some parser somewhere getting confused by the cases getting mixed up.
Out of curiosity, I tried generating the same project, and the module names work as expected (e.g. ProjectNameWeb) but some of the filenames are kinda wonky. Hereβs the tree output of the lib/ directory:
Notice how the projectName_web module filename looks, ahem strange. This can be avoided by using snake_case when generating the projects (one less PITA to deal with, you know?).