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 : The term 'bash' is not recognized as the name #3319

Open
velara3 opened this issue Mar 20, 2024 · 7 comments
Open

Installation : The term 'bash' is not recognized as the name #3319

velara3 opened this issue Mar 20, 2024 · 7 comments

Comments

@velara3
Copy link

velara3 commented Mar 20, 2024

On this page:
https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating

It says:

To install or update nvm on Windows, you should run the install script. To do that, you may either download and run the script manually, or use the following cURL or Wget command:

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

That results in this message:

bash : The term 'bash' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:76

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

Can you update the guide to address this error?

@ljharb
Copy link
Member

ljharb commented Mar 20, 2024

What OS/shell are you using (that’s listed as supported in the readme) that doesn’t have bash?

@velara3
Copy link
Author

velara3 commented Mar 20, 2024

It's the terminal that's running in VSCode (powershell) Windows 11

image

@ljharb
Copy link
Member

ljharb commented Mar 20, 2024

nvm does not support powershell. On windows, nvm only supports git bash, cygwin, or WSL2.

@velara3
Copy link
Author

velara3 commented Mar 20, 2024

I don't have nvm installed. I am trying to install it.

@ljharb
Copy link
Member

ljharb commented Mar 20, 2024

right - but you can't install it on powershell because nvm doesn't support it.

@velara3
Copy link
Author

velara3 commented Mar 21, 2024

So what do I install it on? CMD?

@ljharb
Copy link
Member

ljharb commented Mar 21, 2024

no, on windows, you'd have to use git bash, cygwin, or WSL2, as per the readme and my above comment. nvm doesn't support cmd.exe or powershell.

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

No branches or pull requests

2 participants