Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm info foo@range --json does not show same data as without --json #13872

Open
1 of 4 tasks
ljharb opened this issue Sep 6, 2016 · 8 comments
Open
1 of 4 tasks

npm info foo@range --json does not show same data as without --json #13872

ljharb opened this issue Sep 6, 2016 · 8 comments
Labels

Comments

@ljharb
Copy link
Contributor

ljharb commented Sep 6, 2016

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • Other (see below for feature requests):

What's going wrong?

npm info graceful-fs@* version: produces a list of version numbers and the version string.
npm info graceful-fs@* version --json: produces only the first found version string.

The same applies to npm info graceful-fs@* deprecated, and probably many other fields.

How can the CLI team reproduce the problem?

Run npm info graceful-fs@* version with and without --json.

supporting information:

  • npm -v prints: 3.10.3
  • node -v prints: 6.5.0
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X, or Linux?: OS X
  • Network issues: None
  • Container: N/A
@legodude17
Copy link
Contributor

I can confirm that this does happen. I am pretty sure the docs say that --json is still in development.

@ljharb
Copy link
Contributor Author

ljharb commented Jun 1, 2017

Hmm, now I can't reproduce "produces only the first found" in npm 2, 3, 4, or 5.

I'm definitely still not getting actual JSON; just uncolored normal output - so this should stay open.

@ljharb
Copy link
Contributor Author

ljharb commented Jun 17, 2017

(ping, in case npmbot decides to annihilate my issue)

@npm-robot
Copy link

We're closing this issue as it has gone seven days without activity and without being labeled. If we haven't even labeled in issue in seven days then we're unlikely to ever read it.

If you are still experiencing the issue that led to you opening this or this is a feature request you're still interested in then we encourage you to open a new issue. If this was a support issue, you may be better served by joining package.communty and asking your question there.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

@ljharb
Copy link
Contributor Author

ljharb commented Jun 18, 2017

sigh. This issue should definitely still be open.

@kenany kenany removed the bot-closed label Jun 19, 2017
@kenany kenany reopened this Jun 19, 2017
@ljharb
Copy link
Contributor Author

ljharb commented Jun 19, 2017

Thank you! Would you mind labelling it so it can stay open longer?

@kenany kenany added the bug label Jun 19, 2017
@ljharb
Copy link
Contributor Author

ljharb commented Jul 10, 2017

(ping, to avoid npmbot carnage)

@ljharb
Copy link
Contributor Author

ljharb commented Aug 3, 2017

(ping again)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants