-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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] ci command says I can get more info, but I can't #2857
Comments
The message is fixed in the most-recent npm v7.6.3. That version was released ~17 hours ago, so it's very new. The % npm ci --help
npm ci
Usage:
npm ci
aliases: clean-install, ic, install-clean, isntall-clean
Run "npm help ci" for more info Particularly: Run "npm help ci" for more info Was fixed in this PR, apparently: #2855 |
Well, that command works, but it also doesn't really give me any more information:
That is: I still have no idea what a "clean" install is. |
|
I just tested this in Manjaro in a VirtualBox VM... Seems like Arch may have inadvertently broken
I think this is a bug or early-adopter issue with how Arch is packaging npm 7. I understand Arch Linux does some things to make For context/to clarify: Arch offers npm as a system package: https://archlinux.org/packages/community/any/npm/ In my testing, that version of npm 7 has broken |
If you do this on Arch, you can see the manpage as it's meant to be displayed:
So, npm as it's published to the npm package registry is fine and not broken. Only the custom Arch-packaged version of npm 7 is broken in my testing. |
@ocket8888 |
@DeeDeeG in that case, it seems like a bug should be filed on arch, since npm does not officially distribute itself anywhere but it’s own install script or the npm registry itself. |
Arch Linux has a bug tracker, with the bugs for their custom Link to file a new bug (I assume you need an account at their site to do so): https://bugs.archlinux.org/newtask?project=5&product_category=33&item_summary=%5Bnpm%5D+PLEASE+ENTER+SUMMARY |
Filed as an Arch bug: https://bugs.archlinux.org/task/69969 I have no comment on the very interesting task number that was assigned. |
The basis for this issue is that Arch does this:
The idea, in principle, is to let people use the system manpage mechanism to find manpages. So Something like the git approach might be a better idea, where every man page is either git-{foo} for a git command, or git{foo} for some concepts like gitrevisions. npm section 5/7 manpages aren't well namespaced right now. It should be possible to detect "there is no manpage for this" by checking to see if the |
This appears to be an issue w/ Arch. |
Arguably npm should be better behaved w.r.t. the system manual pages, though. ;) Really, do consider behaving more like git. |
It's true that this bug should be closed, since the actual issue is downstream, but an enhancement that would have the side-effect of fixing this bug would be to use the system manual if possible, and I do hope that is considered despite this issue being closed. |
Current Behavior:
to figure out what the
ci
command does, I triednpm ci --help
, which outputsSo, to figure out what is meant by a "clean" install, I tried to get "more info" using
npm ci help
. However,ci
doesn't actually support thehelp
sub-sub-command. If you try to do that, you wind up actually running a clean install as if you had just donenpm ci
.Expected Behavior:
There are two possibilities. One is to actually support
npm ci help
by outputting a more detailed help message. The other is to simply remove the last two lines of output fromnpm ci --help
, so that it is accurate.I favor the former, because I still don't know what a "clean" install is - can anyone tell me?
Steps To Reproduce:
npm ci --help
Environment:
Node version: v15.11.0
NPM version: 7.6.2
The text was updated successfully, but these errors were encountered: