@michbeck100 shame over me
. Yes - you are right.
I did a complete new installation as described in the Getting Started Guide. I installed node version v12.19.0 as described. After I installed pimatic (also as described) I started pimatic with the default config file. As soon as the database was build, I got the following error message. Any idea what’s going wrong? Also what’s strange is sqlite3@4.0.9 node_modules…in the log?
15:58:51.848 [pimatic, ppm] sqlite3@4.0.9 node_modules/sqlite3
15:58:51.849 [pimatic, ppm] ├── nan@2.14.2
15:58:51.851 [pimatic, ppm] └── node-pre-gyp@0.11.0 (semver@5.7.1, detect-libc@1.0.3, mkdirp@0.5.5, tar@4.4.13, nopt@4.0.3, rc@1.2.8, npm-packlist@1.4.8, rimraf@2.7.1, needle@2.5.2, npmlog@4.1.2)
Knex: run
$ npm install sqlite3 --save
Error: Cannot find module 'sqlite3’
Require stack:
- /home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/dialects/sqlite3/index.js
- /home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/lib/index.js
- /home/pi/pimatic-app/node_modules/pimatic/node_modules/knex/knex.js
- /home/pi/pimatic-app/node_modules/pimatic/lib/database.coffee
- /home/pi/pimatic-app/node_modules/pimatic/startup.coffee
- /home/pi/pimatic-app/node_modules/pimatic/pimatic.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
at Function.Module._resolveFilename (/home/pi/pimatic-app/node_modules/pimatic/node_modules/module-alias/index.js:49:29)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
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:79: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:517:31)
at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:699:18)
at _drainQueueStep (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate (internal/timers.js:461:21)*