yarn should show currently installed versions of modules on the system

Created on 22 Oct 2016  Β·  3Comments  Β·  Source: yarnpkg/yarn

Do you want to request a _feature_ or report a _bug_?

Feature

What is the current behavior?

yarn has no command to show information about the currently installed versions of node etc.

What is the expected behavior?

I expect that yarn has a command which shows information / versions of installed node like npm version

maybe yarn versions because yarn version has another purpose.

_expected output_:

$ npm version
{
  npm: '3.10.5',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '57.1',
  modules: '48',
  node: '6.3.0',
  openssl: '1.0.2h',
  uv: '1.9.1',
  v8: '5.0.71.52',
  zlib: '1.2.8' 
}

$ yarn versions
{
  yarn: '0.16.0',
  ares: '1.10.1-DEV',
  http_parser: '2.7.0',
  icu: '57.1',
  modules: '48',
  node: '6.3.0',
  openssl: '1.0.2h',
  uv: '1.9.1',
  v8: '5.0.71.52',
  zlib: '1.2.8' 
}

Please mention your node.js, yarn and operating system version.
Node: 6.3.0
Yarn: 0.16.0
OS: Win 8.1

Most helpful comment

Command descibed by @NonPolynomial is called now yarn list

All 3 comments

Created #1423 to fix this, pending approval.

no, thats the same to npm ls.
npm version instead shows the installed versions of e.g. Node and NPM.

changed the title of that issue

Am 23.10.2016 um 09:39 schrieb Pushkaraj Shinde:

yarn ls does that for you.

$ yarn ls
yarn ls v0.16.0
β”œβ”€ [email protected]
β”‚  β”œβ”€ mime-types@~2.1.11
β”‚  └─ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚  └─ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚  β”œβ”€ accepts@~1.3.3
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ content-type@~1.0.2
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ debug@~2.2.0
β”‚  β”œβ”€ depd@~1.1.0
β”‚  β”œβ”€ encodeurl@~1.0.1
β”‚  β”œβ”€ escape-html@~1.0.3
β”‚  β”œβ”€ etag@~1.7.0
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ methods@~1.1.2
β”‚  β”œβ”€ on-finished@~2.3.0
β”‚  β”œβ”€ parseurl@~1.3.1
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ proxy-addr@~1.1.2
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ range-parser@~1.2.0
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ serve-static@~1.11.1
β”‚  β”œβ”€ type-is@~1.6.13
β”‚  β”œβ”€ [email protected]
β”‚  └─ vary@~1.1.0
β”œβ”€ [email protected]
β”‚  β”œβ”€ debug@~2.2.0
β”‚  β”œβ”€ escape-html@~1.0.3
β”‚  β”œβ”€ on-finished@~2.3.0
β”‚  β”œβ”€ statuses@~1.3.0
β”‚  └─ unpipe@~1.0.0
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ [email protected]
β”‚  └─ statuses@>= 1.3.0 < 2
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚  └─ mime-db@~1.24.0
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚  └─ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚  β”œβ”€ forwarded@~0.1.0
β”‚  └─ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚  β”œβ”€ debug@~2.2.0
β”‚  β”œβ”€ depd@~1.1.0
β”‚  β”œβ”€ destroy@~1.0.4
β”‚  β”œβ”€ encodeurl@~1.0.1
β”‚  β”œβ”€ escape-html@~1.0.3
β”‚  β”œβ”€ etag@~1.7.0
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ http-errors@~1.5.0
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ [email protected]
β”‚  β”œβ”€ on-finished@~2.3.0
β”‚  β”œβ”€ range-parser@~1.2.0
β”‚  └─ statuses@~1.3.0
β”œβ”€ [email protected]
β”‚  β”œβ”€ encodeurl@~1.0.1
β”‚  β”œβ”€ escape-html@~1.0.3
β”‚  β”œβ”€ parseurl@~1.3.1
β”‚  └─ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚  β”œβ”€ [email protected]
β”‚  └─ mime-types@~2.1.11
β”œβ”€ [email protected]
β”œβ”€ [email protected]
└─ [email protected]
Done in 0.10s.

Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprΓΌft.
https://www.avast.com/antivirus

Command descibed by @NonPolynomial is called now yarn list

Was this page helpful?
0 / 5 - 0 ratings