Npm install sqlite3 takes forever

I am trying to install sqlite3 for use in node.js. However, the installation takes forever and gets stuck at the bottom line below.

I waited at least 15 minutes for something to happen.

I also tried to install using the --build-from-source

supplied one, with the same result.

The device I'm installing the device on is a Raspberry Pi and restarting it doesn't fix the problem. Other packages such as socket.io

have been successfully installed previously.

npm install sqlite3
npm WARN package.json ServerGPS@1.0.0 No description
npm WARN package.json ServerGPS@1.0.0 No repository field.
npm WARN package.json ServerGPS@1.0.0 No README data
/
> sqlite3@3.0.8 install /home/pi/ServerGPS/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
make: Entering directory '/home/pi/ServerGPS/node_modules/sqlite3/build'
  ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3080900/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3080900/sqlite3.o

      

+3


source to share


2 answers


I suggest you take a look at dblite . It is a wrapper for sqlite .

var dblite = require('dblite'),
    db = dblite('file.name');

// Asynchronous, fast, and ...
db.query('SELECT * FROM table', function(err, rows) {
  // ... that easy!
});

      



npm install dblite

+1


source


The device I am installing on is a Raspberry Pi.



The sqlite3 driver is a built-in module and needs to be compiled during installation. This compilation will take much longer on a slower processor.

0


source







All Articles