Okay, this came out:
pi@raspberrypi:~/pimatic-app $ sudo node node_modules/pimatic/pimatic.js
20:05:49.219 2018-03-21 Wednesday
20:05:54.333 [pimatic] Starting pimatic version 0.9.42
Knex: run
$ npm install sqlite3 --save
Error: Cannot find module '/home/pi/pimatic-app/node_modules/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/sqlite3/lib/sqlite3.js:4:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (/home/pi/pimatic-app/node_modules/pimatic/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Client_SQLite3._driver (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/dialects/sqlite3/index.js:75:12)
at Client_SQLite3.initializeDriver (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/client.js:219:26)
at Client_SQLite3.Client (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/client.js:113:10)
at new Client_SQLite3 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/dialects/sqlite3/index.js:58:20)
at Knex (/home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/index.js:60:34)
at /home/pi/pimatic-app/node_modules/pimatic/lib/database.coffee:78:17
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
pi@raspberrypi:~/pimatic-app $