Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows installation: A positional parameter cannot be found that accepts argument '=https' error #371

Closed
ghost opened this issue Apr 11, 2020 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 11, 2020

curl --proto '=https' --tlsv1.2 -sSf https://imdl.io/install.sh | bash

outputs (in Powershell):

Invoke-WebRequest : A positional parameter cannot be found that accepts argument '=https'.

@casey
Copy link
Owner

casey commented Apr 12, 2020

Thanks for the report, and sorry for the issue!

It looks likeThat's interesting, it looks like calling curl in powershell calls Invoke-WebRequest, and the =https argument doesn't agree with it.

If you can run bash, you can try the command in bash. I think I should write a powershell-native install command, probably using Invoke-WebRequest directly, and put it in the readme for windows users.

casey added a commit that referenced this issue Apr 20, 2020
Unfortunately, the install script doesn't work on windows, due to:

- Powershell defining an alias that maps `curl` to `Invoke-WebRequest`,
  which is incompatible with `curl`.

- The absence of the `rev` command.

type: documentation
fixes:
- #371
@casey
Copy link
Owner

casey commented Apr 20, 2020

Sorry for taking so long to respond to this!

I tried to get the script to run on Windows, but ran into multiple issues. Curl is present on newer versions of windows, but on some versions, it's aliased to Invoke-WebRequest, plus a few commands (like rev) are missing that the script uses.

For now I've noted in the readme that the script only works on Linux and MacOS.

I would love to have working install script for windows, but for now I think the best way to get the binary is to download it manually from the releases page :/

@casey casey closed this as completed Apr 20, 2020
@casey
Copy link
Owner

casey commented Apr 20, 2020

I made this issue to track creating a .msi installer for windows, although I'm not sure when that'll get done.

@ghost
Copy link
Author

ghost commented Apr 26, 2020

Understandable, I may try the Windows 10's Linux subsystem at some point.

@casey
Copy link
Owner

casey commented Apr 26, 2020

I've had good luck getting rust programs to run on the WSL, so hopefully Intermodal works without issue.

@Fleshgrinder
Copy link

Anyone who has Rust installed on Windows with any toolchain can simply use cargo install imdl and will have it available globally. Sorry for resurrecting this old issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants