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?
Asked
Active
Viewed 2,876 times
2
-
Hello, can you validate the answer for your question or add more details to fix your issue? Thank you :) – crbast Apr 07 '22 at 10:30
2 Answers
10
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
)

Leonard Kakande
- 675
- 1
- 10
- 17

crbast
- 2,192
- 1
- 11
- 21
0
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

Jannie Theunissen
- 28,256
- 21
- 100
- 127