quasarframework/quasar · error
Wrong number of parameters (${argv._.length}).
Error message
Wrong number of parameters (${argv._.length}). What it means
The 'quasar ext' CLI accepts either no parameters (list extensions) or exactly two (an action and an extension name). Any other parameter count prints this warning, shows help, and exits with code 1. It is a usage guard, not a runtime failure.
Source
Thrown at app-vite/lib/cmd/ext.js:49
Options
--no-color Disable colored output
--help, -h Displays this message
`)
}
if (argv.help) {
showHelp()
argv.__warn?.()
process.exit(0)
}
import { log, warn, dot } from '../utils/logger.js'
import { green } from 'kolorist'
if (argv._.length !== 0 && argv._.length !== 2) {
console.log()
warn(`Wrong number of parameters (${argv._.length}).`)
showHelp()
process.exit(1)
}
const { getCtx } = await import('../utils/get-ctx.js')
const { appExt } = getCtx({
mode: 'spa',
debug: false,
prod: true
})
if (argv._.length === 0) {
if (appExt.extensionList.length === 0) {
log(' No App Extensions are installed')
log(' You can look for "quasar-app-extension-*" in npm registry.')
} else {
console.log('Installed App Extensions:')
View on GitHub (pinned to 4841521b5f)
Solutions
- Supply exactly two parameters: 'quasar ext <add|remove|invoke|uninvoke> <ext-name>'.
- Run 'quasar ext' with no arguments to list installed extensions.
- Run 'quasar ext --help' to see accepted usage.
Example fix
// before quasar ext add // after quasar ext add @quasar/icon-genie
Defensive patterns
Strategy: validation
Validate before calling
// validate arity before invoking the CLI
const args = ['ext', 'add', '@quasar/qmarkdown'];
const rest = args.slice(1);
if (rest.length !== 0 && rest.length !== 2) {
throw new Error('quasar ext takes 0 or 2 params: [<action> <extName>]');
} Prevention
- Remember the contract: 'quasar ext' (list) or 'quasar ext <action> <name>'.
- Check exit code 1 + help output in scripts to catch usage mistakes.
- Consult 'quasar ext --help' rather than docs from memory.
When it happens
Trigger: Running 'quasar ext' with 1 parameter (e.g. 'quasar ext add'), or 3+ parameters (e.g. 'quasar ext add my-ext extra').
Common situations: Forgetting the extension name after the action ('quasar ext invoke'), pasting extra args from docs, or scripting the CLI with the wrong arity.
Related errors
- Unknown action specified (${action}).
- Wrong number of parameters (${argv._.length}).
- ERR_PARSE_ARGS_UNKNOWN_OPTION
- ERR_PARSE_ARGS_UNKNOWN_OPTION
- ERR_PARSE_ARGS_UNKNOWN_OPTION
AI-assisted analysis of quasarframework/quasar@4841521b5f (2026-08-30).
Data as JSON: /api/errors/fa540a0aa62a969b.
Report an issue: GitHub.