Okay, so I’m a newbie, and there’s probably something very simple I’m missing. But this is pretty obviously wrong:
$ mix phoenix.new recommenjion
** (Mix) Application name must start with a letter and have only lowercase letters, numbers and
underscore, got: "recommenjion". The application name is inferred from the path, if you'd like to
explicitly name the application then use the `--app APP` option.
I am not sure how to check which version of Phoenix I have, but I think it’s at least 1.2. And I was able to create a project without difficulty last month when I started the Programming Phoenix book. Something has broken in the last few weeks.
$ mix phx.new recommenjion
** (Mix) The task "phx.new" could not be found
I don’t have any reason not to upgrade to a newer version, but I can’t find a newer version, or any instructions on how to upgrade to it. I just checked the Upgrading guide at phoenixframework.org, and it points to the News page. But 1.2 is the newest version shown on the News page - and I upgraded to that just in case - but nothing has changed.
Nope, same error. I also tried ‘mix phoenix.new hello_phoenix’, which I have done before, and that didn’t work either.
Okay, I do have v1.2.4, and … the problem is gone! Thank you.
The weird thing is, though, I didn’t just upgrade; I upgraded earlier today, and the phoenix.new command failed several times after that … now it works, in the same bash shell, without my having changed anything in between. I would be interested to know the cause of that.