-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
Trouble Installing NVM "Clone succeeded, but checkout failed." #2273
Comments
Are you using WSL for this, or git bash or Cygwin? Only WSL Is POSIX, and thus supported. |
I am getting the same problem and outputs, and I am using git bash. |
@12arpitgoel nvm doesn't support git bash. The only way to use it on windows is with WSL. |
@akhilalekha to be clear, that's WSL, not git-bash? |
I tried this command inside git bash |
@akhilalekha again, nvm does not support git bash - that won’t work, because git bash is not posix compliant. The only way to use nvm on windows is to use WSL. |
You state that nvm requires POSIX compliance, however the problem in this case appears to be file names that are invalid on Windows -- and that seems like something that would be easy to fix. See issue #1643, for example, where similar issues with file names were resolved. Given that other issues, like #3162, suggest that nvm mostly works fine with Git Bash, it would be nice to resolve this issue and un-break the installation process for Git Bash. |
@magreenblatt the files have already been renamed, afaict, can you confirm it's still an issue today? |
Great news! |
Operating system and version:
Windows 10
nvm debug
output:$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13527 100 13527 0 0 27382 0 --:--:-- --:--:-- --:--:-- 27382
=> Downloading nvm from git to '/c/Users/ronas/.nvm'
=> Cloning into 'C:/Users/ronas/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
remote: Total 290 (delta 35), reused 97 (delta 20), pack-reused 0
Receiving objects: 100% (290/290), 163.27 KiB | 539.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
error: invalid path 'test/fast/Aliases/"nvm alias" should not accept aliases with slashes'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Failed to clone nvm repo. Please report this!
I am trying to install nvm on windows 10 using
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
but I get this error above
nvm ls
output:I dont have it yet so I cant run this
How did you install
nvm
?$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
If you are having installation issues, or getting "N/A", what does
curl -I --compressed -v https://nodejs.org/dist/
print out?$curl -I --compressed -v https://nodejs.org/dist/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 104.20.22.46:443...
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to nodejs.org (104.20.22.46) port 443 (#0)
CApath: none
} [5 bytes data]
} [512 bytes data]
{ [122 bytes data]
{ [19 bytes data]
{ [4904 bytes data]
{ [520 bytes data]
{ [52 bytes data]
} [1 bytes data]
} [52 bytes data]
} [5 bytes data]
} [5 bytes data]
{ [5 bytes data]
TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [230 bytes data]
old SSL session ID is stale, removing
{ [5 bytes data]
Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
} [5 bytes data]
< HTTP/2 200
< date: Thu, 30 Jul 2020 22:00:00 GMT
< content-type: text/html
< set-cookie: __cfduid=d667a7c6830bd0b0c4769edc81942bdb21596146400; expires=Sat, 29-Aug-20 22:00:00 GMT; path=/; domain=.nodejs.org; HttpOnly; SameSite=Lax
< cache-control: max-age=14400
< cf-cache-status: HIT
< age: 4376
< cf-request-id: 044356550b0000e5f405bec200000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< vary: Accept-Encoding
< server: cloudflare
< cf-ray: 5bb2599b4d09e5f4-LHR
< content-encoding: br
<
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0HTTP/2 200
date: Thu, 30 Jul 2020 22:00:00 GMT
content-type: text/html
set-cookie: __cfduid=d667a7c6830bd0b0c4769edc81942bdb21596146400; expires=Sat, 29-Aug-20 22:00:00 GMT; path=/; domain=.nodejs.org; HttpOnly; SameSite=Lax
cache-control: max-age=14400
cf-cache-status: HIT
age: 4376
cf-request-id: 044356550b0000e5f405bec200000001
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
vary: Accept-Encoding
server: cloudflare
cf-ray: 5bb2599b4d09e5f4-LHR
content-encoding: br
Connection #0 to host nodejs.org left intact
The text was updated successfully, but these errors were encountered: