idea:
config the https://registry.npmjs.org
from yarn config get registry
or ENV
.
Can you say why you would want to do this? Is this causing esbuild to be broken for you? The install script downloads the packages from the npm registry because the packages are only ever published to the npm registry.
In China, can not download this package from the npmjs registry or the speed is very slow. If can config the registry url, we can download from cnpm or similar mirror site.
Kind of related, I am behind a proxy and the request seems not to take my HTTPS_PROXY export into account.
Version 0.6.6 should now respect the configured npm registry. Read the release notes for more details.
Note that I haven't fully tested this so it'd be great to get independent confirmation that it works as expected. I only verified that the configuration setting causes the download to be redirected to the new domain instead of going to the npm registry.
Most helpful comment
Version 0.6.6 should now respect the configured npm registry. Read the release notes for more details.
Note that I haven't fully tested this so it'd be great to get independent confirmation that it works as expected. I only verified that the configuration setting causes the download to be redirected to the new domain instead of going to the npm registry.