-
Notifications
You must be signed in to change notification settings - Fork 12k
ng update ignores proxy config #13166
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
Comments
@alan-agius4 Thus, the configuration is not the problem, such as firewall rule that causes a time-out. |
@daniel-seitz If you are running the latest beta can you try running update with the I'll also push a PR (and hopefully get it into beta.2) that will expand the verbose output to also include the final set of options to further aid in troubleshooting. |
@clydin thank for for pushing, I tested verbose with beta.2
So in total more than 50 times this whole block here. Could be enhanced but this is another story.
Interestingly in my yarn.lock there are 2 entries for jasmine-core:
Not sure if that is normal.
would be interesting why npmjs.org is asked and what the final configuration looks like. |
That's still not working on my end, using angular cli 7.1.3. |
Try |
dupe of #10952 ? |
That won't work in our environment however ...
|
same like before. |
Same error here, it is somhow trying to connect to https://registry.npmjs.org don't know why, i already have registry set to my artifactory. |
@ahasall Worked for me, also behind corporate proxy with our own registry |
@nexxado, thanks for sharing :) |
@mgechev, i think you've been a bit quick on the draw. Most of us don't have the chance to use internal registries, and OF COURSE it works, if you're accessing an internal service, no matter if the proxy configuration is respected by ng updated. (which seems to be NOT the case). |
@dmnk yep, you're right. Just reopened. |
Also relates to my comment here #9646 (comment) |
Can you retry it with 7.2.2? It fixed our issue with the project npmrc file. |
This should now be corrected with the latest version of the CLI. If anyone is still encountering problems, please open a new issue detailing the problem. |
Sorry for the time off and missing feedback from my side. I'm assigned to another project and can't really test it anymore. |
Back in the original project - just tried with @angular/[email protected] |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)issue was partially discussed here (#10624) after .npmrc issues and later (original issue solved) determined that there is a different issue.
registry=[some url, masked out] always-auth=true
also there are packages with
https://registry.yarnpkg.com/some-package-and-so-on
yarn install
works, everything else from 6. works but notng update @angular/cli
, message comes up after a while (1 minute or so):request to https://registry.npmjs.org/@types%2fjasmine failed, reason: connect ETIMEDOUT
seems to be on a random package, at another try I got:
request to https://registry.npmjs.org/codelyzer failed, reason: connect ETIMEDOUT [some ip address and port]
Assumption:
It seems that ng update @angular/cli ignores the proxy since it should go to the configured proxy or https-proxy instead of npmjs.org.
Should the command be ng update @angular/cli@next? (Results in same error message)
P.S. I tried migrate only - which works - and then update the packages via yarn, also works.
I just think that I might miss something that ng update does as well, other than migrating to the angular.json file and lifting the packages to the recent version.
yarn global add @angular/cli@next
andyarn add @angular/cli@next
The text was updated successfully, but these errors were encountered: