question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bundling/preinstall woes

See original GitHub issue

Ticket 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).

More details: https://github.com/strongloop/fsevents/issues/157#issuecomment-265545908

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
springmeyercommented, Mar 28, 2018

I always get X is missing a bundled dependency “node-pre-gyp”. Is it ok for modules shipped over GitHub and not npm?

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 npm install: which is that:

  • you might have a project that depends on > 1 module that uses node-pre-gyp
  • npm might dedupe node-pre-gyp (when pulling via the npm repository)
  • then you might have one of the modules fail to install because node-pre-gyp is not available on PATH when it is needed (due to deduping)
0reactions
springmeyercommented, Jul 23, 2018

Closing this. As long as you are running node > 4:

  • You should not need to bundle deps
  • You should not need to preinstall node-pre-gyp
  • Just list node-pre-gyp in 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 of

If anyone finds otherwise, please comment here. But node-sqlite3 has been released recently without any problems without using preinstall or bundledDependencies, so I’m considering this issue resolved.

refs #403

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found