<p>yarn doit afficher les versions actuellement installées des modules sur le système</p>

Créé le 22 oct. 2016  ·  3Commentaires  ·  Source: yarnpkg/yarn

Voulez-vous demander une _fonctionnalité_ ou signaler un _bug_ ?

Caractéristique

Quel est le comportement actuel ?

yarn n'a pas de commande pour afficher des informations sur les versions actuellement installées de node, etc.

Quel est le comportement attendu ?

Je m'attends à ce que yarn ait une commande qui affiche les informations/versions du nœud installé comme npm version

peut-être yarn versions parce que yarn version a un autre but.

_sortie attendue _ :

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

Veuillez mentionner votre node.js, votre fil et la version de votre système d'exploitation.
Nœud : 6.3.0
Fil : 0.16.0
Système d'exploitation : Win 8.1

Commentaire le plus utile

La commande décrite par @NonPolynomial est appelée maintenant yarn list

Tous les 3 commentaires

Créé # 1423 pour résoudre ce problème, en attente d'approbation.

non, c'est pareil pour npm ls .
npm version affiche à la place les versions installées, par exemple Node et NPM.

changé le titre de ce problème

Am 23.10.2016 à 09:39 schrieb Pushkaraj Shinde:

yarn ls fait pour vous.

$ 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.

Ce courrier électronique est le logiciel antivirus Avast auf Viren geprüft.
https://www.avast.com/antivirus

La commande décrite par @NonPolynomial est appelée maintenant yarn list

Cette page vous a été utile?
0 / 5 - 0 notes