Skip to content

nvm fails to install on windows 11 #3573

@jonhp

Description

@jonhp

Operating system and version: windows 11

nvm debug output:

nvm ls output:

How did you install nvm?

C:\Windows\System32>curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16631 100 16631 0 0 178k 0 --:--:-- --:--:-- --:--:-- 186k
=> Downloading nvm from git to '/home/jon/.nvm'
=> Cloning into '/home/jon/.nvm'...
remote: Enumerating objects: 381, done.
remote: Counting objects: 100% (381/381), done.
remote: Compressing objects: 100% (324/324), done.
remote: Total 381 (delta 43), reused 177 (delta 29), pack-reused 0 (from 0)
Receiving objects: 100% (381/381), 384.34 KiB | 2.26 MiB/s, done.
Resolving deltas: 100% (43/43), done.
remote: Enumerating objects: 382, done.
remote: Counting objects: 100% (382/382), done.
remote: Compressing objects: 100% (325/325), done.
remote: Total 382 (delta 43), reused 178 (delta 29), pack-reused 0 (from 0)
Receiving objects: 100% (382/382), 386.80 KiB | 3.55 MiB/s, done.
Resolving deltas: 100% (43/43), done.
fatal: bad object 44f0e129d8a598a72f4aaf581db9b50c0803f1f9
error: remote did not send all necessary objects
Failed to fetch origin with v0.40.2. Please report this!

What steps did you perform? see above

What happened? failed to install

What did you expect to happen? successful install

Is there anything in any of your profile files that modifies the PATH?

If you are having installation issues, or getting "N/A", what does curl -I --compressed -v https://nodejs.org/dist/ print out?

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\jon> curl -I --compressed -v https://nodejs.org/dist/
curl : Cannot find path 'C:\Users\jon--compressed' because it does not exist.
At line:1 char:1

  • curl -I --compressed -v https://nodejs.org/dist/
  •   + CategoryInfo          : ObjectNotFound: (C:\Users\jon\--compressed:String) [Invoke-WebRequest], ItemNotFoundExce
     ption
      + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
    
    

PS C:\Users\jon>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions