Closed viceice closed 4 years ago
I fixed the problem in dependencies, and now it WFM.
I will produce a new version of re2 later — GitHub is down now.
Please try the existing version. It should pick up new versions of dependencies. Let me know if it works for you too.
works thanks
I'm getting this error with 1.15.4 and node2nix:
> re2@1.15.4 install /nix/store/bc7y3dmssp2ksvcs7pihvzgyln1ks4qr-node_forward-email-7.2.1/lib/node_modules/forward-email/node_modules/re2
> install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR
sh: install-from-cache: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! re2@1.15.4 install: `install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the re2@1.15.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /build/.npm/_logs/2020-10-03T12_17_44_216Z-debug.log
Could you tell me where this install-from-cache comes from?
See https://github.com/svanderburg/node2nix/issues/68#issuecomment-354733864. I guess I'll have to patch it myself.
Could you tell me where this install-from-cache comes from?
Yes, of course. It is listed in direct dependencies: a module cryptically named install-artifact-from-github
. To wit: https://github.com/uhop/node-re2/blob/master/package.json#L13
Could you tell me why that script was not installed and/or not found by npm
even it was explicitly requested?
I released the fix: 1.15.5.
But sandbox or not calling non-global scripts should work. I suggest to look into that and fix it at the source rather than relying on non-standard behavior. BTW, even if there is no internet connection the script supposed to work properly and initiate the local build.
PS: And it is better to open a new issue ticket then reusing old ones --- easier to track.