You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
On a freshly installed project using adonis new --blueprint nuxt-community/adonuxt-template ~PROJECT, I can't find User & Token db table migration.
Adonis-cli version: 3.0.12
Tried running ace auth:setup, as per documentation, got this instead:
~PROJECT/ $ ace auth:setup [15:27:33]
{ Error: Cannot find module 'Adonis/Commands/Auth:Setup'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at requireStack (~PROJECT/node_modules/require-stack/src/index.js:44:12)
at Ioc._require (~PROJECT/node_modules/@adonisjs/fold/src/Ioc/index.js:331:12)
at Ioc.use (~PROJECT/node_modules/@adonisjs/fold/src/Ioc/index.js:728:17)
at Kernel.addCommand (~PROJECT/node_modules/@adonisjs/ace/src/Kernel/index.js:139:24)
at commands.forEach (~PROJECT/node_modules/@adonisjs/ignitor/src/Ignitor/index.js:413:39)
at Array.forEach (native) code: 'MODULE_NOT_FOUND' }
Then tried to run: adonis install @adonisjs/auth, it will complain that
these files already exists (in order):
~PROJECT/config/auth.js
~PROJECT/app/Models/User.js
After deleting these files:
~PROJECT/config/auth.js
~PROJECT/app/Models/User.js
~PROJECT/app/Models/Token.js
~PROJECT/app/Models/Hooks/User.js
and running adonis install @adonisjs/auth again,
finally got the migration files
~PROJECT/ $ adonis install @adonisjs/auth [15:54:43]
✔ npm: Installed @adonisjs/auth
? Which authenticator you would like to use Jwt
? Which serializer you would like to use Lucid
create: config/auth.js
create: Models/User.js
create: Models/Token.js
create: Models/Hooks/User.js
create: database/migrations/1512292488960_user.js <- this file
create: database/migrations/1512292488963_token.js <- this file
Why so many hoops???
This question is available on Nuxt.js community (#c61)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On a freshly installed project using
adonis new --blueprint nuxt-community/adonuxt-template ~PROJECT
, I can't findUser
&Token
db table migration.Adonis-cli version:
3.0.12
Tried running
ace auth:setup
, as per documentation, got this instead:the contents of
start/app.js
I cannot find
auth:setup
command anywhere, i.e.:Then tried to run:
adonis install @adonisjs/auth
, it will complain thatthese files already exists (in order):
~PROJECT/config/auth.js
~PROJECT/app/Models/User.js
After deleting these files:
~PROJECT/config/auth.js
~PROJECT/app/Models/User.js
~PROJECT/app/Models/Token.js
~PROJECT/app/Models/Hooks/User.js
and running
adonis install @adonisjs/auth
again,finally got the migration files
Why so many hoops???
The text was updated successfully, but these errors were encountered: