Skip to content

Impossible to generate MFA with parse-dashboard --createMFA (parse dashboard 7.1.0) #2819

Open
@n3me5is-git

Description

@n3me5is-git

New Issue Checklist

Issue Description

When running the command parse-dashboard --createMFA I obtain an error about inquirer package.
I'm using Node 22 and latest parse dashboard.

$ ./node_modules/parse-dashboard/bin/parse-dashboard --createMFA

/home/node/app/node_modules/parse-dashboard/Parse-Dashboard/CLI/mfa.js:211
    const { username, app } = await inquirer.prompt([
                                             ^

TypeError: inquirer.prompt is not a function
    at createMFA (/home/node/app/node_modules/parse-dashboard/Parse-Dashboard/CLI/mfa.js:211:46)
    at Command.<anonymous> (/home/node/app/node_modules/parse-dashboard/Parse-Dashboard/index.js:38:13)
    at Command.listener [as _actionHandler] (/home/node/app/node_modules/commander/lib/command.js:482:17)
    at /home/node/app/node_modules/commander/lib/command.js:1265:65
    at Command._chainOrCall (/home/node/app/node_modules/commander/lib/command.js:1159:12)
    at Command._parseCommand (/home/node/app/node_modules/commander/lib/command.js:1265:27)
    at Command.parseAsync (/home/node/app/node_modules/commander/lib/command.js:917:16)
    at run (/home/node/app/node_modules/parse-dashboard/Parse-Dashboard/index.js:45:17)
    at Object.<anonymous> (/home/node/app/node_modules/parse-dashboard/Parse-Dashboard/index.js:51:1)
    at Module._compile (node:internal/modules/cjs/loader:1730:14)

Steps to reproduce

Run the command

Actual Outcome

The error described

Expected Outcome

Working procedure to create MFA key

Environment

Current dependencies (Node 22):

$ npm ls inquirer
demo-parse-server-migration@1.1.0 /home/node/app
`-- parse-dashboard@7.1.0
  `-- inquirer@12.5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions