Esbuild: Feature request: can config the registry url

Created on 23 Jul 2020  Â·  4Comments  Â·  Source: evanw/esbuild

https://github.com/evanw/esbuild/blob/2abe0243556294a5862c8c43c455e78f85d8a633/npm/esbuild/install.js#L20

idea:
config the https://registry.npmjs.org from yarn config get registry or ENV.

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.

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qnp picture qnp  Â·  4Comments

vforsh picture vforsh  Â·  3Comments

Gotterbild picture Gotterbild  Â·  3Comments

aelbore picture aelbore  Â·  4Comments

OneOfOne picture OneOfOne  Â·  3Comments