nvm-sh / nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
MIT License
80.01k stars 8.01k forks source link

nvm installation fails on fedora 19 with "Unable to access nvm.git" error #2064

Open deepiajay29 opened 5 years ago

deepiajay29 commented 5 years ago

<

ljharb commented 5 years ago

You ran the install script with sudo - that won't do what you expect. One of the whole points of nvm is to not have to use sudo.

What happens if you rerun the installation script as it is in the readme verbatim?

deepiajay29 commented 5 years ago

Getting the same error even without sudo

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash => Downloading nvm from git to '/home/sukumad1/.nvm' => Cloning into '/home/sukumad1/.nvm'... fatal: unable to access 'https://github.com/creationix/nvm.git/': Peer reports incompatible or unsupported protocol version. Failed to clone nvm repo. Please report this!

On Thu, Jun 13, 2019 at 3:38 PM Jordan Harband notifications@github.com wrote:

You ran the install script with sudo - that won't do what you expect. One of the whole points of nvm is to not have to use sudo.

What happens if you rerun the installation script as it is in the readme verbatim?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nvm-sh/nvm/issues/2064?email_source=notifications&email_token=AMK77UWWT4RIAZE4MAAQO4LP2HMNBA5CNFSM4HXV5CC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXSSEEQ#issuecomment-501555730, or mute the thread https://github.com/notifications/unsubscribe-auth/AMK77USULV6PTDGXNCQJJGLP2HMNBANCNFSM4HXV5CCQ .

ljharb commented 5 years ago

What version of git do you have? Per the readme, nvm requires v1.7.10 or later.

deepiajay29 commented 5 years ago

git version 1.8.3.1

On Thu, Jun 13, 2019 at 4:56 PM Jordan Harband notifications@github.com wrote:

What version of git do you have? Per the readme, nvm requires v1.7.10 or later.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nvm-sh/nvm/issues/2064?email_source=notifications&email_token=AMK77UVOQJBWTU56WJ7PUEDP2HVR5A5CNFSM4HXV5CC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXSWW6Q#issuecomment-501574522, or mute the thread https://github.com/notifications/unsubscribe-auth/AMK77UROEEADVR3I5S37QE3P2HVR5ANCNFSM4HXV5CCQ .

ljharb commented 5 years ago

What happens if you try to git clone the repo directly? if https is unsupported, perhaps your OS is missing OpenSSL?

deepiajay29 commented 5 years ago

Can you please let me know how to git clone?

ljharb commented 5 years ago

git clone https://github.com/nvm-sh/nvm.git ~/.nvm

deepiajay29 commented 5 years ago

Same error even with git clone: [sukumad1@f19_vm_sukumad1 Downloads]$ git clone https://github.com/nvm-sh/nvm.git ~/.nvm Cloning into '/home/sukumad1/.nvm'... fatal: unable to access 'https://github.com/nvm-sh/nvm.git/': Peer reports incompatible or unsupported protocol version.

ljharb commented 5 years ago

In that case, it’s not a problem with nvm - it’s that your machine is unable to connect to https with git.

Perhaps your ssl certs are out of date, or perhaps your machine is lacking OpenSSL? I’m not sure how to help you from here.