SQLite3 Problem Still


Im SURE this has been asked a billion times so if this has been answered, apologies in advance, but my google-fu is crappy right now

Ubuntu: 16.04 LTS 64 bit
node: 8.11.3
npm: 5.6.0
yarn: 1.9.4

I copied the tutorial pretty similarly and yet im getting this error:

“Cannot find /usr/lib/node_modules/botpress/node_modules/sqlite3/lib/binding/node7-linux-x64/node_sqlite3.node”

steps taken:

  • curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
  • sudo apt-get install -y nodejs
  • sudo npm install yarn -g
  • sudo npm install botpress -g
  • mkdir botpress
  • cd botpress
  • bp init my-bot
  • (pressed enter bunch of times)
  • yarn install
  • cd my-bot
  • bp start

I get this error

Knex: run
$ npm install sqlite3 --save
Error: Cannot find module '/usr/lib/node_modules/botpress/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/lib/node_modules/botpress/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Client_SQLite3._driver (/usr/lib/node_modules/botpress/node_modules/knex/lib/dialects/sqlite3/index.js:75:12)
    at Client_SQLite3.initializeDriver (/usr/lib/node_modules/botpress/node_modules/knex/lib/client.js:219:26)
    at Client_SQLite3.Client (/usr/lib/node_modules/botpress/node_modules/knex/lib/client.js:113:10)
    at new Client_SQLite3 (/usr/lib/node_modules/botpress/node_modules/knex/lib/dialects/sqlite3/index.js:58:20)

I tried

  • npm install sqlite3 --save

No luck

Any ideas?


Which version of botpress are you running?
Could you try running cd /usr/lib/node_modules/botpress && npm install sqlite3 --save?


Try using npm start instead of bp start