-
-
Notifications
You must be signed in to change notification settings - Fork 836
Closed
Description
Currently npm install sqlite3
requires building node-sqlite3 from the source with node-gyp (on Windows the prerequisites are Python and MSVC, the latter is huge).
To get rid of this requirement (and thus to attract more end users and less building-related issues reported), please accomplish the following:
- Require (and use) node-bindings.
- Compile binary part of node-sqlite3 for the supported platforms (win32/ia32, darwin/x64, linux/ia32, linux/x64... sunos/ia32?), put the resulting binaries inside your npm package and let node-bindings pick one on user's side.
- Put
binding.gyp
in.npmignore
, otherwise npm will still attempt to build from the source. (Do not forget to add some contents of.gitignore
to.npmignore
when you create the latter, but only some: npm should not ignore the binaries.) - (optional) Put binaries in
.gitignore
to prevent them from being hosted on GitHub. (This step is necessary only if you hate mixing sources with binaries. This step may also be completed already if you build inbuild/
, which is currently in.gitignore
.)
After that npm install sqlite3
would involve only downloading and unpacking, and thus would just work.
Metadata
Metadata
Assignees
Labels
No labels