-
Notifications
You must be signed in to change notification settings - Fork 263
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
Is mirroring broken? #250
Comments
It looks like the option will be node-pre-gyp/lib/util/versioning.js Line 289 in 2d57e8f
module_name os node_sqlite3 at https://github.com/mapbox/node-sqlite3/blob/4800c6377ef15f467290d77776302b486e71ada3/package.json#L11. The idea behind having both module_name and name is that sometimes the package name has a dash or some other character that is invalid to be used for the C++ module name. However, in the node-sqlite3 case I think module_name could be == to name . It ended up as module_name since it was that since well before the project was ported to used node-pre-gyp .
|
Thanks for that @springmeyer! Super insightful – I didn't know the difference, thanks for teaching me! So I tried your suggestion, but |
@mstade Locally I put a print statement at node-pre-gyp/lib/util/versioning.js Line 289 in 2d57e8f
host is == to http://obviouslynonexistant/ when I do:
Is that not what you are seeing? |
My apologies! I just realized that I tried installing jsbin with the mirror option, and jsbin depends on a very old version of sqlite3 which in turn depends on a version of node-pre-gyp that doesn't have the mirroring feature. I tried it again with a current version of sqlite3 and it does work. I've opened jsbin/jsbin#2927 to fix this where it needs fixing. Your project does exactly what it says on the tin with regards to this feature, so this is entirely my bad. Many apologies for wasting your time, and thank you very much for your support! :o) |
SSL-intercepting proxythanks for @mstade and @springmeyer
it successfully install [email protected] without the error "node-pre-gyp ERR! Tried to download(undefined) ......" BTW , now [email protected] can use npm's cafile option for dealing self-signed-cert #243 |
Hi!
I'm trying to figure out how to install sqlite3 via a download mirror (see TryGhost/node-sqlite3#734 for further details) since we're firewalled and need to host a mirror of prebuilt binaries. However, when I try the following (on a non-firewalled box) it doesn't seem to actually override the host:
I would expect this to fail, but it merrily goes out to the S3 bucket described in sqlite3's package.json and downloads the correct binary. Does it fall back some how? I've locked through the code and see no such fallback, nor does
--verbose
logging yield any more detail. Am I not using the mirror option correctly?Also related to this, we won't be able to set this flag directly, since we'll be installing a dependency that itself depends on sqlite3 – will the config variable be correctly used no matter how deep the dependency that uses node-pre-gyp is?
The text was updated successfully, but these errors were encountered: