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

[BUG] npm 7.x does not output correct error in all cases #1655

Closed
MylesBorins opened this issue Aug 11, 2020 · 2 comments
Closed

[BUG] npm 7.x does not output correct error in all cases #1655

MylesBorins opened this issue Aug 11, 2020 · 2 comments
Assignees
Labels
Bug thing that needs fixing Release 7.x work is associated with a specific npm 7 release

Comments

@MylesBorins
Copy link
Contributor

MylesBorins commented Aug 11, 2020

Current Behavior:

when an unknown command is passed there is no output

$ npm i-g citgm

$

Expected Behavior:

When an unknown command is passed the help output should be provided

[citgm][npm-7]$ npm i-g citgm

Usage: npm <command>

where <command> is one of:
    access, adduser, audit, bin, bugs, c, cache, ci, cit,
    clean-install, clean-install-test, completion, config,
    create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
    edit, explore, fund, get, help, help-search, hook, i, init,
    install, install-ci-test, install-test, it, link, list, ln,
    login, logout, ls, org, outdated, owner, pack, ping, prefix,
    profile, prune, publish, rb, rebuild, repo, restart, root,
    run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, team, test, token, tst, un,
    uninstall, unpublish, unstar, up, update, v, version, view,
    whoami

npm <command> -h  quick help on <command>
npm -l            display full usage info
npm help <term>   search for help on <term>
npm help npm      involved overview

Specify configs in the ini-formatted file:
    /Users/mylesborins/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@6.14.7 /Users/mylesborins/.nvm/versions/node/v14.8.0/lib/node_modules/npm

Steps To Reproduce:

A couple different commands seem to reproduce this

$ npm init-y

$ npm i-g citgm

$ npm cache-add

$ npm what-what-what-what

perhaps it is related to the kebab case?

Environment:

OS: MacOS 10.15.6
Node: 14.7.0
npm: 7.0.0-beta.4

@MylesBorins MylesBorins added Release 7.x work is associated with a specific npm 7 release Bug thing that needs fixing Needs Triage needs review for next steps labels Aug 11, 2020
@darcyclarke darcyclarke removed the Needs Triage needs review for next steps label Aug 14, 2020
@darcyclarke
Copy link
Contributor

Expected Behavior:

npm should output No results for "..."

@ruyadorno
Copy link
Contributor

tested again in v7.0.0-beta.12 and looks like this has been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

4 participants