** (Mix) Could not invoke task "igniter.install": 1 error found!--auth-strategy : Unknown option
Got this error when running the HQ ash installer command that was auto generated based on the config I selected.
11 Replies
Can I see the full command?
Sry, I cleared it and have retried with password instead of magic link, now I got this other error instead. ( ill retry with magic link later and report back)
mix igniter.new hyperliquid_ash --with phx.new \
--with-args "--database sqlite3" --install ash,ash_phoenix \
--install ash_sqlite,ash_authentication \
--install ash_authentication_phoenix,ash_admin \
--install live_debugger,tidewave --auth-strategy password --yes* creating hyperliquid_ash/lib/hyperliquid_ash/application.ex
We are almost there! The following steps are missing:
$ cd hyperliquid_ash
Then configure your database in config/dev.exs and run:
$ mix ecto.create
Start your Phoenix app with:
$ mix phx.server
You can also run your app inside IEx (Interactive Elixir) as:
$ iex -S mix phx.server
Fetching and compiling dependencies β
cd hyperliquid_ash && mix ash.setup
At line:1 char:21
+ cd hyperliquid_ash && mix ash.setup
+ ~~
The token '&&' is not a valid statement separator in this version.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
cd hyperliquid_ash
mix ash.setup
Compiling 15 files (.ex)
Generated hyperliquid_ash app
** (Mix) The task "ash.setup" could not be found
Does it fail the same way if you remove the directory it created and try again?
At line:1 char:21
+ cd hyperliquid_ash && mix ash.setup
+ ~~
The token '&&' is not a valid statement separator in this version.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine
is interesting
what shell are you using?
Ah, its powershell π± Yeah you may need to adapt the command to handle powershell
Try adding quotes around all of the things you want to install
And do the last line with
mix ash.setup
manually
Oh
claude says its teh backslashes
Try that?Yes using powershell! Ill be back with results later tonight, if its poweshell ill try clauding it too π
I tried caludΒ΄s version and got this;;
mix igniter.new hyperliquid_ash --with phx.new
>> --with-args "--database sqlite3" --install ash,ash_phoenix
>> --install ash_sqlite,ash_authentication
>> --install ash_authentication_phoenix,ash_admin
>> --install live_debugger,tidewave --auth-strategy magic_link --y
* initializing git repository
* running mix deps.get
* running mix assets.setup
* running mix deps.compile
We are almost there! The following steps are missing:
$ cd hyperliquid_ash
Then configure your database in config/dev.exs and run:
$ mix ecto.create
Start your Phoenix app with:
$ mix phx.server
You can also run your app inside IEx (Interactive Elixir) as:
$ iex -S mix phx.server
Fetching and compiling dependencies β
installing igniter β
Updating project's igniter dependency β
temporarily adding igniter β
compiling igniter β
setting up igniter β
compiling 4 packages β
** (Mix) Could not invoke task "igniter.install": 2 errors found!
--auth-strategy : Unknown option
--y : Unknown option
This worked so it seems there is something wrong with the magic link if I'm understanding it correctlyYour original command worked for me
Strange im still having issues.
This
mix igniter.new hyperliquid_ash --with phx.new \ --with-args "--database sqlite3" --install ash,ash_phoenix \ --install ash_sqlite,ash_authentication \ --install ash_authentication_phoenix,ash_admin \ --install live_debugger,tidewave --auth-strategy magic_link --yes
on my machine results in
Fetching and compiling dependencies β
installing igniter β
Updating project's igniter dependency β
temporarily adding igniter β
compiling igniter β
setting up igniter β
compiling 4 packages β
(Mix) Could not invoke task "igniter.install": 1 error found!
--auth-strategy : Unknown option
mix igniter.new hyperliquid_ash --with phx.new \ --with-args "--database sqlite3" --install ash,ash_phoenix \ --install ash_sqlite,ash_authentication \ --install ash_authentication_phoenix,ash_admin \ --install live_debugger,tidewave --auth-strategy password --yes
results in
(Mix) Could not invoke task "igniter.install": 1 error found!
--auth-strategy : Unknown option
Iv tried throwing llms on it but cant find a solution that works for me, their interpolation is usually that its not a valid flag i provide.
Don't know enough to have my own ideas on how to best proceed, happy to try if there are any suggestions / more info I can provide
mix archive.install hex igniter_new --force
Resolving Hex dependencies...
Resolution completed in 0.044s
New:
igniter_new 0.5.31
* Getting igniter_new (Hex package)
All dependencies are up to date
Compiling 7 files (.ex)
Generated igniter_new app
Generated archive "igniter_new-0.5.31.ez" with MIX_ENV=prod
mix archive.install hex phx_new 1.8.1 --force
Resolving Hex dependencies...
Resolution completed in 0.04s
New:
phx_new 1.8.1
* Getting phx_new (Hex package)
All dependencies are up to date
Compiling 11 files (.ex)
Generated phx_new app
Generated archive "phx_new-1.8.1.ez" with MIX_ENV=prod
on powershell you need to remove the slashes I think
Oh, you already tried it
Just generate a new app
and
mix igniter.install
each thing at a time
and only add --auth-strategy
when installing ash_authentication
mix igniter.install ash_authentication --auth-strategy password --auth-strategy magic_link
checking for igniter in project β
Updating project's igniter dependency β
temporarily adding igniter β
compiling igniter β
setting up igniter β
Update: mix.exs
...|
41 41 | defp deps do
42 42 | [
43 + | {:ash_authentication, "~> 4.0"},
43 44 | {:ash_sqlite, "~> 0.2"},
44 45 | {:ash_phoenix, "~> 2.0"},
...|
Warning! Uncommitted git changes detected in the project.
You may want to save these changes and rerun this command.
This ensures that you can run
git reset
to undo the changes.
Output of git status -s --porcelain
:
M .formatter.exs
M AGENTS.md
M config/runtime.exs
M config/test.exs
M lib/hyper_ash/repo.ex
M lib/hyper_ash_web/endpoint.ex
M mix.exs
M mix.lock
Modify mix.exs and install?
[Y/n] y
compiling ash_authentication β
** (Mix) Could not invoke task "igniter.install": 2 errors found!
--auth-strategy : Unknown option
--auth-strategy : Unknown option
I still get this via PowerShell, i tried the full commands via wsl and there it all worked great.
Its a windows bcrypt compile issueOkay that finally explains it.
We have plans to make bcrypt optional at some point that may help
For now have you considered using WSL?
On my way to solving it I think, ill update soon
Solution
Solved it using Visual Studio Build Tools:)
Im using windows 11