npm binary mirror option not respected in yarn
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 271
- Avg merge
- 23h 40m
- Merged PRs (30d)
- 2
Description
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! 👋
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the documented canvas_binary_host_mirror command and compare its behavior under yarnpkg and npm. Trace how node-pre-gyp receives and resolves the mirror setting; done means the yarn invocation uses the configured binary mirror as npm does.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100