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

Installation Error: Invoke-WebRequest : A parameter cannot be found that matches parameter name 'o-' #3320

Open
velara3 opened this issue Mar 20, 2024 · 2 comments
Labels
non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated. OS: windows

Comments

@velara3
Copy link

velara3 commented Mar 20, 2024

When attempting to install in the command line as described on this page:
https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating

Using:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

It says:

Invoke-WebRequest : A parameter cannot be found that matches parameter name 'o-'.
At line:1 char:6
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install ...
+      ~~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
image

The troubleshooting section doesn't mention this error message above.

Can you update the guide to address this error?

Windows 11
VSCode Powershell

@jolkkola
Copy link

jolkkola commented Apr 4, 2024

The problem here is that in Powershell the Invoke-WebRequest command is aliased as curl. Invoke-WebRequest does not support the same parameters as curl.

@ljharb
Copy link
Member

ljharb commented Apr 4, 2024

nvm does not support powershell. On windows, we only currently support git-bash, cygwin, and WSL2 (as mentioned in the readme).

@ljharb ljharb added OS: windows non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated. labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-issue / invalid This isn't relevant to nvm, or turned out to be something unrelated. OS: windows
Projects
None yet
Development

No branches or pull requests

3 participants