-
Notifications
You must be signed in to change notification settings - Fork 12k
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
With version 12.2, the dependencies no longer install behind corporate registry #21529
Comments
It might be worth mentioning that we use project-level .npmrc files and that the postinstall script of esbuild tries to use the global .npmrc file (which might be the intended usage?). Anyway, current workaround is to manually copy my project-specific .npmrc file to the global location before running npm install. |
I believe adding Can you please try? |
Yes we already have this, it really is about the fact that we use project-specific .npmrc files and that a postinstall script that just calls npm will use the global .npmrc (as described above). This is probably not something that can be fixed at Angular CLI level so I think I can better close this? It was just a very unpleasant surprise when upgrading to the new CLI. We have had similar things with other libraries trying to download packages by themselves (e.g. node-sass) but there were other workarounds for that. |
Indeed, I don't see this as being actionable from our end. That said, the fact that it doesn't use the local NPMRC files seem like a different ESbuild bug. This is caused because the I also suggest to subscribe to evanw/esbuild#789 |
For what it's worth, we've "solved" this issue by adding a resolution replacing "resolutions": {
// replace 0.12.17 with the version of esbuild your angular version is using
"esbuild@0.12.17": "npm:esbuild-wasm@0.12.17"
} |
@alan-agius4 I see that the esbuild bug you mentioned should be solved. Does that also mean that it is also solved in Angular CLI? And it is only solved in v13 then, right? I see 12.2.7 still uses a 0.12.x version of esbuild. If this is the case, would it be possible to put the fixed version in 12.2.8 (if there is still a version coming up)? Upgrading to Angular 13 is not planned soon for our company. |
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
Command (mark with an
x
)Is this a regression?
Yes, it works in the latest 12.1
Description
The
esbuilder
dependency tries to install its own dependencies in a post-install script and fails behind a corporate proxy / registry. See these (maybe related) issues: evanw/esbuild#1382 evanw/esbuild#1485, apparently this is correct behavior, but now it affects angular CLI as well.🔬 Minimal Reproduction
I cannot create an online repoduction of this.
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
64-bit Windows 10 behind a corporate (Azure Artifacts) registry
The text was updated successfully, but these errors were encountered: