Skip to content

Switch to prebuildify for installation #1812

Open
@azerum

Description

@azerum

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions