Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid recursive command throws "...is not a function" error instead of showing help message #2397

Closed
mcmillenb opened this issue Mar 5, 2020 · 0 comments · Fixed by #2407

Comments

@mcmillenb
Copy link

pnpm version:

4.11.1

Code to reproduce the issue:

mkdir pnpm-test && cd pnpm-test
pnpm init -y
pnpm recursive build

Expected behavior:

A help message saying "unknown command" similar to running pnpm build or another invalid command.

Actual behavior:

Error message:

ERROR  cmd_1.default[(cmd || "help")] is not a function
at _onTimeout     ../../../../usr/local/lib/node_modules/pnpm/lib/main.js:152  const result = cmd_1.def…
at listOnTimeout  internal/timers.js:531     

pnpm-debug.log:
https://gist.github.com/mcmillenb/d52c115a5e55e0611e6cf5f4147aebb1

Additional information:

  • node -v prints: v12.10.0
  • Windows, OS X, or Linux?: OS X
@zkochan zkochan self-assigned this Mar 8, 2020
zkochan added a commit that referenced this issue Mar 8, 2020
@zkochan zkochan added this to the v4.11 milestone Mar 8, 2020
zkochan added a commit that referenced this issue Mar 8, 2020
close #2397
PR #2407

BREAKING CHANGE: @pnpm/parse-cli-args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants