curl -O --location https://raw.githubusercontent.com/leanprover/elan/master/elan-init.ps1
powershell -f elan-init.ps1
del elan-init.ps1
did not work for me, because $cmdline is empty and powershell complains about -ArgumentList missing it's parameter (here). Here's the error:
Start-Process : Cannot validate argument on parameter 'ArgumentList'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\Users\cwinter\elan-init.ps1:89 char:72
+ ... rocess -FilePath "$_dir/elan-init.exe" -ArgumentList $cmdline -Wait ...
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Start-Process], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StartProcessCommand
I suspect someone broke the default for $DefaultToolchain? The comments say
.PARAMETER DefaultToolchain
Which tool chain to setup as your default toolchain, default is 'none'
but a few lines below it's set to empty instead of 'none':
This from the README:
did not work for me, because
$cmdline
is empty and powershell complains about-ArgumentList
missing it's parameter (here). Here's the error:I suspect someone broke the default for
$DefaultToolchain
? The comments saybut a few lines below it's set to empty instead of 'none':
(That's on Windows 11, non-admin command prompt.)