mapbox/node-pre-gyp

npm binary mirror option not respected in yarn

roc opened this issue · 1 comments

roc commented

Referring to the docs at https://github.com/mapbox/node-pre-gyp#download-binary-files-from-a-mirror we should be able to set a binary download mirror for modules like:

canvas_binary_host_mirror=https://artifactory.or.some.other.mirror/path/to/node-canvas-prebuilt/ yarnpkg --verbose

This fails to set a mirror as far as I can tell, but in npm this works. Any ideas why? With some pointers I'd be happy to open a PR if this really is an issue and not just me being a newb! 👋

@roc did you find any workaround using yarn?