npm/init-package-json

Repository creates url as `git+https://github.com...`

jasonkarns opened this issue · 5 comments

Recently, npm-init has begun generating packages where the repo url scheme is git+https://. Is this intentional or a bug? Why the change? (npm 3.5.3)

adius commented

I'm asking myself the same question!

Recently, npm-init has begun generating packages where the repo url scheme is git+https://. Is this intentional or a bug? Why the change? (npm 3.5.3)

This can be closed. Has no additional value everything is on https://npmjs.org.

Solution

it is fully intentional also i need to inform you all that you should upgrade your nodejs installation and npm installations from time to time

also i need to inform you all that you should upgrade your nodejs installation and npm installations from time to time

What is this supposed to mean? This issue is over 7 years old. The version it was reported against was latest available at the time.

@jasonkarns that means i saw indicators that there is some one upgrading npm without reading the changelog so i suggested fast and simple and general to update from time to time

but i understand now that the question was a diffrent so i will answer it finally

parsing string http://github.com/* gives me only enough information to know that i can get a tar.gz from there
when i put git+https in the string i know i can use the git client to pull that even with credentials configured via the existing git client.

git+ssh:// tells me that i can use git and also the ssh config to get credentials .

Long Story short

if you work only with public repos where you have no need to push changes back or you do not need to use credentials for the download using https://github.com is fine all other need to use git@ git+ssh:// git+https