>> n8n start
User settings loaded from: /home/guilherme/.n8n/config
Initializing n8n process
Error: There was an error initializing DB
at Start.exitWithCrash (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/commands/BaseCommand.ts:159:23)
at /home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/commands/BaseCommand.ts:71:39
at Start.init (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/commands/BaseCommand.ts:70:3)
... 3 lines matching cause stack trace ...
at run (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/@oclif/core/lib/main.js:94:16)
at /home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/bin/n8n:65:2 {
[cause]: DriverPackageNotInstalledError: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save
at SqliteDriver.loadDependencies (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/src/driver/sqlite/SqliteDriver.ts:201:19)
at new SqliteDriver (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/src/driver/sqlite/SqliteDriver.ts:44:14)
at Function.create (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/src/driver/DriverFactory.ts:93:16)
at DataSource.initialize (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/src/data-source/DataSource.ts:248:23)
at Object.init (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/Db.ts:57:2)
at Start.init (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/commands/BaseCommand.ts:70:3)
at Start.init (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/commands/start.ts:195:3)
at Start._run (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/@oclif/core/lib/command.js:301:13)
at Config.runCommand (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/@oclif/core/lib/config/config.js:424:25)
at run (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/@oclif/core/lib/main.js:94:16)
} undefined
DriverPackageNotInstalledError: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save
at SqliteDriver.loadDependencies (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/src/driver/sqlite/SqliteDriver.ts:201:19)
at new SqliteDriver (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/src/driver/sqlite/SqliteDriver.ts:44:14)
at Function.create (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/src/driver/DriverFactory.ts:93:16)
at DataSource.initialize (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/src/data-source/DataSource.ts:248:23)
at Object.init (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/Db.ts:57:2)
at Start.init (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/commands/BaseCommand.ts:70:3)
at Start.init (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/src/commands/start.ts:195:3)
at Start._run (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/@oclif/core/lib/command.js:301:13)
at Config.runCommand (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/@oclif/core/lib/config/config.js:424:25)
at run (/home/guilherme/.nvm/versions/node/v20.17.0/lib/node_modules/n8n/node_modules/@oclif/core/lib/main.js:94:16) undefined
I already reinstalled n8n (npm install n8n -g
) and sqlite3 (with the npm install sqlite3 --save
), but it still not working. Any tips to solve this issue?