
Make sure that you have at least libsqlite3 >= 3.6. apt-get install libsqlite3-dev for Debian/Ubuntu. If you don't have them installed, install the -dev package with your package manager, e.g. If building against an external sqlite3 make sure to have the development headers available. If you wish to install against an external sqlite then you need to pass the -sqlite argument to npm wrapper: npm install -build-from-source -sqlite=/usr/local

However, by default, an internal/bundled copy of sqlite will be built and statically linked, so an externally installed sqlite3 is not required. The sqlite3 module depends only on libsqlite3. To skip searching for pre-compiled binaries, and force a build from source, use npm install -build-from-source See Building for node-webkit for details. It is possible to use the installed package in node-webkit instead of the vanilla Node.js. It is also possible to make your own build of sqlite3 from its source instead of its npm package ( see below). Otherwise, it uses node-gyp to build the extension. The module uses node-pre-gyp to download a pre-compiled binary for your platform, if it exists.

The latest sqlite3 package: npm install sqlite3

