Bundling/preinstall woes
See original GitHub issueTicket to keep track of edge cases around applications bundling node-pre-gyp (which was the original recommendation but alternatives were proposed in https://github.com/mapbox/node-pre-gyp/issues/162) and not bundling (which was documented as an option in https://github.com/mapbox/node-pre-gyp/pull/201).
- Module uses node-pre-gyp, does bundle node-pre-gyp, and has a direct dependency on a dependency of node-pre-gyp - likely will be de-duped and breaks node v0.10.x install when node-pre-gyp is bundled and the dep is missing: https://github.com/mapbox/node-zipfile/issues/72
- Module uses node-pre-gyp and does not bundle node-pre-gyp: likely will break windows: https://github.com/mapbox/node-sqlite3/issues/720
- Module uses node-pre-gyp and does not bundle node-pre-gyp and uses
npm install node-pre-gypin"preinstall": may lead tounexplainablehangs with various npm versions: https://github.com/npm/npm/issues/12583 | https://github.com/mapnik/node-mapnik/pull/658 - Module uses node-pre-gyp and does not bundle node-pre-gyp and uses
npm install node-pre-gypin"preinstall":preinstallfails withenoent ENOENT: no such file or directory, open '/home/user/<package>/package.json'- refs https://github.com/Project-OSRM/node-osrm/issues/305
More details: https://github.com/strongloop/fsevents/issues/157#issuecomment-265545908
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Problem With Pre-Installed Office Home and Student 2019
Hi, I just bought my laptop bundled with Pre-Installed OHS 2019. At first, I logged in with my account that I used on...
Read more >Why 'bundle install' need these files to be pre-installed?
The command bundle install goes through every gem in the Gemfile and installs ... This process isn't 'installing gems manually', it is solving...
Read more >Product bundling
In a bundle pricing, companies sell a package or set of goods or services for a lower price than they would charge if...
Read more >Troubleshooting MDT Bundle process errors
To solve the problem, reboot the MDT Bundle Creator machine, and rerun the MDT Bundle Creator installation action sequence from the dashboard.
Read more >Installer Package Scripting - Content Delivery Network (CDN)
The bundle-style post/preinstall and pre/postupdate script options were removed. ... building packages to solve specific problems using installer scripts, I.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is expected/normal @pronebird - generally this is okay for modules coming via github, because (if I recall correctly), in this case npm will not dedupe. This lack of deduping avoids one of the problems that requires bundling in the case of an
npminstall: which is that:node-pre-gyp(when pulling via the npm repository)node-pre-gypis not available on PATH when it is needed (due to deduping)Closing this. As long as you are running node > 4:
preinstallnode-pre-gypnode-pre-gypin your deps. It should be installed early on in the process such that it can be used to install the binaries for the module it is a dependency ofIf anyone finds otherwise, please comment here. But node-sqlite3 has been released recently without any problems without using
preinstallorbundledDependencies, so I’m considering this issue resolved.refs #403