Skip to content

Npm install is taking 10+ minutes to finish #26648

Answered by timbeks
BioCarmen asked this question in Actions
Discussion options

You must be logged in to vote

After some digging around, it appears NPM uses the old and discontinued git:// protocol. See https://github.blog/2021-09-01-improving-git-protocol-security-github/.

The fix we are using is:

git config --global url."git@github.com:".insteadOf git://github.com/

This will tell git to use ssh instead of the old git:// protocol. Hope this can help others.
If there is an even better solution, I would love to hear about it!

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants