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
3.0.5+ hangs when behind a proxy #521
Comments
Yeah, someone would need to try a PR with |
I agree that it is unlikely that proxy support will be added to |
I have the same problem because I'm behind a proxy. The stange thing is that ncu 2.15.0 works well behind a proxy while 3.1.1 does not. Is there a regression somewhere? |
@oupala yes, it was caused by the addition of |
@stoically can confirm it works for me. If, like me, you can't use |
@stoically I typed the command you wrote ( |
Thank you @stoically! Merged and published in |
It works like a charm! |
We're still having issues with our corporate proxy with version
We are using a corporate proxy for all requests except those for our internal npm registry. |
@Nowheresly |
@stoically ... hmm, still some problems with proxy even on version 3.1.3. When running as Setting like:
NodeJS: 11.13.0 |
@mlc-mlapis Are you sure it's proxy related and not #136? Try running |
@stoically ... hmm, not sure but when running:
only the output is: |
@stoically ... actually, I am not sure when the problem started ... but it's not so long when it appeared after some upgrade. |
@mlc-mlapis Interesting. That means it hangs between |
@stoically ... running |
@mlc-mlapis Mysterious. Could you try |
I confirm, the problem is fixed with version |
@stoically ... I tried to install as you required:
The result was:
As you can see the time, it was 98 seconds and the 90 seconds of waiting was on the beginning after the line Previously I never waited so long and I was breaking the process before it prints anything on the console. So be aware that the problem could be related to some problems with accessing some NPM servers, I tried to run and waited for the task to finish and the result was: The time to finish was 194 seconds.
So it really looks like some NPM servers are not accessible from our environment (but they were) and the process is waiting for a connection and then switches to another NPM server on a timeout. Not sure why this happens right now ... because of global install takes just 10 seconds:
Maybe some message with more detailed info which NPM server is accessed ... with countdown time ... and switching to the alternative NPM server on a time-out would be helpful for understanding what happened. |
@mlc-mlapis So if I understand you correct, ncu now works, but just takes a long time? |
@stoically ... yep, exactly. After running |
@mlc-mlapis ncu uses |
On network without proxies set:
On network with proxies set:
This appears to be caused by #497 because https://github.com/sindresorhus/package-json doesn't support proxies.
The text was updated successfully, but these errors were encountered: