The error message is a bug. You should put the file in C:\Users\miwee\.mix\archives.
I want to check what the certificate issue from wget is. How did install it?
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If running manually works, I wonder why it hang when running it via a Mix command. Can you please try this one last command:iex(1)> Application.start(:mix):okiex(2)> Mix.shell.cmd ~s[powershell -Command "& {$ErrorActionPreference = 'Stop'; $client = new-object System.Net.WebClient; $client.DownloadFile(\"https://hex.pm/installs/hex.ez\", \"hex-ps.ez\")}"]Thanks a lot!
On Tuesday, September 23, 2014 6:07:57 AM UTC-4, José Valim wrote:If running manually works, I wonder why it hang when running it via a Mix command. Can you please try this one last command:iex(1)> Application.start(:mix):okiex(2)> Mix.shell.cmd ~s[powershell -Command "& {$ErrorActionPreference = 'Stop'; $client = new-object System.Net.WebClient; $client.DownloadFile(\"https://hex.pm/installs/hex.ez\", \"hex-ps.ez\")}"]Thanks a lot!
Pulling the powershell command out and running it directly from a DOS command prompt:
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The powershell command works for me. Maybe something went wrong when pasting it?
System.cmd will escape the arguments so that command won’t work.
The following works on my machine:
System.cmd "powershell", ["-Command", ~S["& {$ErrorActionPreference = 'Stop'; $client = new-object System.Net.WebClient; $client.DownloadFile(\"https://hex.pm/installs/hex.ez\", \"hex-ps.ez\");}"]]
It looks like we should default to powershell on windows and fall back to curl / wget, instead of the other way around.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.