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

yarn info returns different results compare to npm view #4044

Open
akosyakov opened this issue Jul 28, 2017 · 2 comments
Open

yarn info returns different results compare to npm view #4044

akosyakov opened this issue Jul 28, 2017 · 2 comments

Comments

@akosyakov
Copy link

akosyakov commented Jul 28, 2017

  • versions don't match:
MacKosyakov-2:electron kosyakov$ yarn info @theia/core --json version
{"type":"inspect","data":"0.2.0-next.f2962684"}
MacKosyakov-2:electron kosyakov$ npm view @theia/core --json version
"0.1.0"
  • the real version is not provided:
MacKosyakov-2:electron kosyakov$ yarn info @theia/core@latest --json version
{"type":"inspect","data":"latest"}
MacKosyakov-2:electron kosyakov$ npm view @theia/core@latest --json version
"0.1.0"
@akosyakov
Copy link
Author

akosyakov commented Jul 28, 2017

Plus returning a string not an object is nicer for individual fields.

@felipedeboni
Copy link

@akosyakov, you can ask yarn with following syntax to get only the string.

@BYK, I can confirm that in 1.5.1.

yarn

yarn info @theia/core@latest version --silent
-> latest

npm

npm info @theia/core@latest version --silent
-> 0.3.7

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

No branches or pull requests

3 participants