adonisjs / core

AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with support for testing, modern tooling, an ecosystem of official packages, and more.
https://adonisjs.com
MIT License
16.92k stars 640 forks source link

Can't find “make:model” option #3959

Closed CoolGIS closed 2 years ago

CoolGIS commented 2 years ago

Package version

4.2.2

Node.js and npm version

node.js 18.12.0 npm 8.19.2

Sample Code (to reproduce the issue)

In terminal,run “npm init adonis-ts-app@latest hello-world”,then I found "make:model" disappear

Julien-R44 commented 2 years ago

You must install Lucid first https://docs.adonisjs.com/guides/database/introduction

nmalchy commented 1 year ago

Hey I installed Lucid as directed and am still encountering this issue

EDIT: It was not obvious that the code snippet in the docs had tabs, I would suggest doing that section differently because it's quite subtle