Run first migration SQLite with Adinis 5 - Cannot find module '@vscode/sqlite3'

564 Views Asked by At

When i run this command "node ace migration:run" the terminal show me this error:

Knex: run $ npm install sqlite3 --save Cannot find module '@vscode/sqlite3' ... ... ...

I am using Adonis JS 5 but the SQLite database is not working. Any idea what it could be?

I tried just running the initial migration command where I expected the database file to be created automatically (just like version 4 did)

1

There are 1 best solutions below

0
On

You probably installed the latest version of Lucid without taking note of the changelogs and breaking changes.

You need to use @vscode/sqlite3 instead of sqlite3.