Skip to content

Installation fails when git is not configured with an ssh key #3603

Closed
@dimitribouniol

Description

@dimitribouniol

Installing nvm 0.40.0-0.40.3 fails on a new macOS installation with the following errors if the user never has an ssh key configured for GitHub:

=> Cloning into '/Users/dimitribouniol/.nvm/test/fixtures/nvmrc'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:nvm-sh/nvmrc.git' into submodule path '/Users/dimitribouniol/.nvm/test/fixtures/nvmrc' failed
Failed to clone 'test/fixtures/nvmrc'. Retry scheduled
Cloning into '/Users/dimitribouniol/.nvm/test/fixtures/nvmrc'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:nvm-sh/nvmrc.git' into submodule path '/Users/dimitribouniol/.nvm/test/fixtures/nvmrc' failed
Failed to clone 'test/fixtures/nvmrc' a second time, aborting
Failed to checkout the given version v0.40.0. Please report this!

Note that this installation does not have an ssh key configured for git, as I primarily use GitHub via https. Installing version 0.39.7 works fine.

Operating system and version: macOS 15.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    installing nvmProblems installing nvm itselfpull request wantedThis is a great way to contribute! Help us out :-D

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions