Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: "Please install sqlite3 package manually" when I execute "sequelize db:migrate"

I'm trying to create a sample app, using this article:

https://arjunphp.com/restful-api-using-async-await-node-express-sequelize/

But when a try to execute database migration with sequenze-cli on sqlite, a have always the same error:

C:\WORKING\todo\todos-manager>sequelize db:migrate

Sequelize CLI [Node: 10.16.0, CLI: 5.5.0, ORM: 5.8.12]

Loaded configuration file "config\config.json".
Using environment "development".

ERROR: Please install sqlite3 package manually

I've already tried to rebuild, with no success.

Any ideas?

like image 541
elena Avatar asked Aug 09 '26 19:08

elena


1 Answers

First install sequelize-cli globally

sudo npm install -g sequelize-cli

Then use the following command to execute migrations.

sequelize db:migrate
like image 77
Abdullah Masood Avatar answered Aug 12 '26 10:08

Abdullah Masood



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!