node-sqlite3 icon indicating copy to clipboard operation
node-sqlite3 copied to clipboard

Switch to prebuildify for installation

Open azerum opened this issue 11 months ago • 0 comments

Summary

Suggestion

Use prebuildify instead of prebuild-install. Unlike prebuild-install, prebuildify ships all precompiled binaries with the package

This simplifies deployment by a lot, since now, no matter what architecture of machine where the package was installed, node_modules can be copied to machine with other architecture and code will still work

Supposedly this will also fix #1731, see this comment

prebuild-install README.md itself recommends to use prebuildify and lists some reasons

My use case

I use Rush.js for monorepo management. It has command rush deploy that creates a directory to deploy specific project from monorepo. It includes:

  • Files of project
  • Files of projects from monorepo it depends on
  • Installed NPM packages

The last point is the problem: if I run rush deploy on my macOS, it will generate directory with sqlite3 binary for macOS inside. Copy this directory on Linux server and it won't work

Proposed implementation

See docs of prebuildify

azerum avatar Dec 11 '24 21:12 azerum