<p>ヤーンは、システムに現在インストールされているモジュールのバージョンを表示する必要があります</p>

作成日 2016年10月22日  ·  3コメント  ·  ソース: yarnpkg/yarn

_feature_をリクエストしますか、それとも_bug_を報告しますか?

特徴

現在の動作は何ですか?

ヤーンには、現在インストールされているノードのバージョンなどに関する情報を表示するコマンドはありません。

期待される動作は何ですか?

私はyarnにnpm versionのようなインストールされたノードの情報/バージョンを表示するコマンドがあると思います

yarn versionには別の目的があるため、おそらくyarn versionsです。

_期待される出力_:

$ 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' 
}

node.js、yarn、オペレーティングシステムのバージョンを教えてください。
ノード:6.3.0
糸:0.16.0
OS:Win 8.1

最も参考になるコメント

@NonPolynomialによって記述されたコマンドがyarn listと呼ばれるようになりました

全てのコメント3件

承認待ちで、これを修正するために#1423を作成しました。

いいえ、それはnpm lsと同じです。
npm versionは、代わりに、ノードやNPMなどのインストール済みバージョンを表示します。

その号のタイトルを変更しました

午前23.10.2016um 09:39 schrieb Pushkaraj Shinde:

yarn lsはあなたのためにそれをします。

$ 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 AvastAntivirus-SoftwareaufVirengeprüft。
https://www.avast.com/antivirus

@NonPolynomialによって記述されたコマンドがyarn listと呼ばれるようになりました

このページは役に立ちましたか?
0 / 5 - 0 評価