mapbox / mapbox/node-pre-gyp

npm binary mirror option not respected in yarn

Open
#514 2 comments 7 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.