[Question] How can i use different sites or mirrors for some binary packages #4819
-
I am migrating from npm to yarn berry. my company blocks installation of some packages with native bindings like node-sass and canvas, so what we do is download them and host them on an internal mirror and set variables in .npmrc something like this sass_binary_site=http://internalurl.company.com/repos/node-sass/raw/releases/download
puppeteer_skip_chromium_download=true
canvas_binary_host_mirror=http://internalurl.company.com/repos/mirrors/raw/node-canvas/releases/download I obviously can no longer set those in .yarnrc.yml and it doesn't pick them up if i define them as env variables ( or maybe i am doing that wrong?) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Individual packages can't be fetched from specific registries. We support custom registries on a by-scope basis, but not by-package. |
Beta Was this translation helpful? Give feedback.
Individual packages can't be fetched from specific registries. We support custom registries on a by-scope basis, but not by-package.