Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adonis 5 "make:migration command not found" any idea?

i read the basic documentation of new Adonis Js5, i make a new api serve and i compile the code with "node ace serve --watch" or "node ace build --watch" and always is the same "make:migration command not found" any idea for fix?

enter image description here

like image 798
Gario3 Avatar asked Dec 06 '25 06:12

Gario3


1 Answers

The @adonisjs/lucid dependency is missing (lucid provider)

According to the official documentation

The data layer of the framework is powered by Lucid and the package must be installed separately.

Setup Lucid

Official documentation : https://docs.adonisjs.com/guides/database/introduction

run (install dependence) :

> npm i @adonisjs/lucid
# or
> yarn add @adonisjs/lucid

and (setup lucid) :

> node ace configure @adonisjs/lucid

and build one time application (node ace build)

like image 88
crbast Avatar answered Dec 07 '25 20:12

crbast



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!