Open
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and Parse Dashboard.
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