-
Hey there. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
same here, npm install or ci takes > 5 min, where it took normally 30 sec. |
Beta Was this translation helpful? Give feedback.
-
After some digging around, it appears NPM uses the old and discontinued The fix we are using is:
This will tell git to use ssh instead of the old |
Beta Was this translation helpful? Give feedback.
-
Thanks @timbeks How do you set it? It there a global way to set it? I don’t want to add it at each step of my workflows |
Beta Was this translation helpful? Give feedback.
-
Hi @BioCarmen , We’ve put that command within our base images. I don’t know how to resolve this with Github Actions. Hopefully you can do the same. |
Beta Was this translation helpful? Give feedback.
-
The most direct approach would be stick it as a step just before your npm install step. Or as part of the NPM install step like so: You could alternatively set up a customized build container with any specialized configuration or tools pre-installed and then run the job in that. I’ve found this method very helpful in smoothing out and speeding up workflows that are dependency heavy (package deps, custom config, custom security stuff). |
Beta Was this translation helpful? Give feedback.
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:
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!