uhop / node-re2

node.js bindings for RE2: fast, safe alternative to backtracking regular expression engines.
Other
495 stars 53 forks source link

fallback to node-gyp if download fails #81

Closed viceice closed 4 years ago

viceice commented 4 years ago

Hi

is it possible to fallback to a node-gyp local build if the download fails?

As on of our users is behind a corporate proxcy, which seems to block that download.

ref: renovatebot/docker-renovate#44

uhop commented 4 years ago

That is strange because an unsuccessful download should trigger a build automatically. Could you investigate more?

Nevertheless, in order to skip downloading a precompiled asset and to force a local build all you need is to define an environment variable as instructed in https://github.com/uhop/node-re2/wiki/Problem:-ABI-mismatch-in-Electron

viceice commented 4 years ago

Thanks, i'll forward those information.

uhop commented 4 years ago

I looked at your reference and I don't see any obvious problems. You may hit some yarn incompatibility: https://github.com/uhop/node-re2/wiki/Problem:-unusual-errors-with-yarn

viceice commented 4 years ago

Ok, yes i've seen this yarn issue sometimes, a force install had always fixed that