RocketNuts
RocketNuts

Reputation: 11140

Difference between two sources to install nvm on Ubuntu?

I'm installing a new Ubuntu 20.04 LTS machine and also need to install nvm. When searching how to get nvm on my system I find two different ways:

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash

and

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
(or with a different version, whatever is the latest)

I assume they will both do the same, but I want to make sure I'm not installing anything wrong on this system.

Is one of these sources more recommendable than the other?

Upvotes: 0

Views: 274

Answers (1)

Matt Davis
Matt Davis

Reputation: 1337

Use the one provided in the official documentation here:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

I believe both are "safe", as creationix appears to be one of the original maintainers. I would however always go for the source from the official repository.

Upvotes: 3

Related Questions