To install node-sqlite3 on BeagleBone Black, first install the latest version of npm:
npm install -g npm
Then install the node-sqlite3 module:
npm install -g sqlite3
Note the -g
flag used to install system wide. To install locally don’t use
the -g
flag.
Npm must be updated because the version that comes with BeagleBone Black fails comparing Python version when installing compiled packages.