-
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
Configurable registry for binary downloads #1193
Comments
There is already a npm config for this: https://docs.npmjs.com/configuring-your-registry-settings-as-an-npm-enterprise-user. I remember testing this in the past using https://verdaccio.org/ and it seemed to work. Setting |
TL;DR this is a Yarn problem on how it applies the npmrc. There is a work around (see below) but ideally I need to get off of Yarn. Having dived in to this a bit more there are a couple things I think going on. We rely on the client; either npm or yarn, to read the registry the npmrc and we do not proxy all calls to public repo back internally into the private instance. This is largely a security policy on our end. That said I think this is related to the fact that we pre-Yarn 2.0 as the initial installer and it has issues with apply yarn install # hits public npm registry without going through proxy npm_config_registry="http://localhost:5555" yarn install # hits public npm registry without going through proxy NPM_CONFIG_REGISTRY="http://localhost:5555" yarn install # goes through proxy npm install # goes through proxy |
Hi @evanw! Thanks for the great tool! Faced this problem from the topic but with yarn 1 and none of listed solutions worked:
Yarn issues yarnpkg/yarn#5854 and yarnpkg/yarn#5683 Only worked solution was pre-install packages via Can install script be extended with support for custom env variable for registry and with |
We use an internal artifactory instance that contains all of the packages we we need to build and those machines don't have access to the internet. Currently when we try to use esbuild it fails in CI since the installer attempts to download the public registry.
Would you be open to a PR that added npmrc support for defining the registry? I was thinking something like the
sass_binary_site
config.The text was updated successfully, but these errors were encountered: