-
Notifications
You must be signed in to change notification settings - Fork 1.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
Fail to install last version on windows 64 behind proxy #1382
Comments
Successfully-downloaded versions are cached locally, so it's not surprising if a previously-installed version can be installed successfully even if the network isn't working. That just means it's already cached. You can find the cached versions in I don't think I can help you debug your proxy setup, however. |
Thanks for he tip. |
Probably related issue here:
Our company uses a private registry that acts as a proxy that uses the NPM registry as an upstream source. The postinstall script doesn't respect my local .npmrc file that configures this proxy and token. It might be worth mentioning that our registry settings are per project (since we use different ones for different projects) and that when running the install script from esbuild it uses the global .npmrc file and not the one located a few folders higher (in the root of the project). Probably this is indeed what it's supposed to do, but I see no workaround for this. |
So I created a powershell script to download and save to cache. |
Unactionable doesn't mean it's not a bug. It just means it doesn't have a self-contained way for me to reproduce this (code to run and/or instructions to follow), so it's not currently possible to investigate and fix. Once we have that it's likely possible to fix the problem. |
@evanw It should be possible to reproduce this by adding any address as the registry in the .npmrc file since the setting is not respected by e.g.:
|
Update from our side: Adding the registry in our global npm / yarn config solved the issue for us. :) Thank you for your work @evanw 👍 |
For me helped to set npm proxy in that way: npm config set registry http://registry.npmjs.org/ Maybe some of this is unnecessary |
Got the error when running Maybe this helps someone. |
last version
previous one
The text was updated successfully, but these errors were encountered: