-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Installing a single git dependency takes 30 seconds #3841
Comments
Just to clarify, I am not installing a git repository that takes 30 seconds to clone
|
I tried to reproduce this with a public github repository
I suspect the 200 vs 404 on |
I uploaded the npm timing information from |
What is codeload.github.com? Is it part of the dep graph of the git repo you’re installing? |
I have no idea what Somewhere in the npm cli dependency tree it resolves something like |
https://github.com/npm/hosted-git-info/blob/main/git-host-info.js#L28 I suspect it's coming from here. |
Do you have two-factor auth or some other sort of prompt that happens when you do authenticated git operations? |
There is no two factor author or prompt. It should be installing via |
Often I got 30-70sec reify with 7.x npm too. I try too analize it next time. |
facing same issue with github.com url as well |
+1 HERE |
Is there an existing issue for this?
Current Behavior
When using npm 7 installing a single git dependency takes greater then 30 seconds
This is a private git dependency over git+ssh
For some more context, the repository is quite small
I went into an empty directory and ran the same install command to see how long it takes there.
Then I ran a similar command, to install a different version of the git dependency and received
I'm suprised installing a single git dependency takes 37 seconds.
Expected Behavior
For an install of a single dependency to take less than 5 seconds
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: