Closed
Description
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.