Level / level

Universal abstract-level database for Node.js and browsers.
MIT License
1.56k stars 106 forks source link

opencollective postinstall script causes failure on android #100

Closed dominictarr closed 6 years ago

dominictarr commented 6 years ago

@Luandro was trying to build our application (secure-scuttlebutt) on android, but had a problem with the opencollective postinstall script, https://github.com/flumedb/flumeview-level/pull/8#issuecomment-386741616

I also noticed another issue about this: https://github.com/Level/level/issues/94 it seems like in some system configurations, dev deps in node_modules/.bin are not available.

The solution might be as simple as "postinstall": "opencollective postinstall || true" so that the command always succeeds, even if it's somehow missing.

vweevers commented 6 years ago

Like #94, it's probably an npm issue. I like your solution though. The postinstall script should never interfere with installation.

The solution might be as simple as "postinstall": "opencollective postinstall || true" so that the command always succeeds, even if it's somehow missing.

Or || exit 0 for Windows compatibility. Only Git Bash users will have true.

ralphtheninja commented 6 years ago

3.0.1