-
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
Unable to download the canvas-prebuilt binary through a mirror #1346
Comments
Sure, it should probably be |
(If you wanted to make a PR you should only have to change |
Thanks! |
@Boshen dumb question: i'm assuming we can host the binaries on our artifactory server and if we do this, what does the |
|
@plantain-00 sorry, I must be missing something...How does this help me? I see in the log where I'm downloading the binary, but this doesn't answer my question of how to do a
|
https://github.com/mapbox/node-pre-gyp#download-binary-files-from-a-mirror |
@plantain-00 ah! I will try that tomorrow. Thanks! |
We'd like to download canvas-prebuilt from a mirror because we are behind the great firewall.
We can achieve this because node-pre-gyp supports it.
But we failed to do so because the module_name specified in package.json doesn't match the naming convention mentioned in node-pre-gyp, which says: "Must be a valid C variable name (e.g. it cannot contain
-
)".I have cloned the repo and changed the module_name from
canvas-prebuilt
tocanvas_prebuilt
and it worked:Happy to send a pr if this doesn't break anything
The text was updated successfully, but these errors were encountered: