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

3.1k views Asked by At

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

2

There are 2 answers

0
crbast On

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)

0
Jannie Theunissen On

After Adonis 5 going live, the database documentation has new installation instructions in the Introduction section, with this configuration step:

node ace configure @adonisjs/lucid