Вы хотите запросить _функцию_ или сообщить об _ошибке_?
Характерная черта
Каково текущее поведение?
у пряжи нет команды для отображения информации об установленных в данный момент версиях узла и т. д.
Каково ожидаемое поведение?
Я ожидаю, что у пряжи есть команда, которая показывает информацию/версии установленного узла, например npm version
может быть, yarn versions
, потому что yarn version
имеет другую цель.
_ожидаемый результат_ :
$ 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, пряжу и версию операционной системы.
Узел: 6.3.0
Пряжа: 0.16.0
ОС: Вин 8.1
Создан # 1423, чтобы исправить это, ожидая утверждения.
нет, это то же самое, что и npm ls
.
npm version
вместо этого показывает установленные версии, например, Node и NPM.
изменил название этого вопроса
Am 23.10.2016 um 09:39 Шриб Пушкарай Шинде:
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.
Электронная почта содержит антивирусное программное обеспечение Avast с защитой Viren geprüft.
https://www.avast.com/антивирус
Команда, описанная @NonPolynomial , теперь называется yarn list
Самый полезный комментарий
Команда, описанная @NonPolynomial , теперь называется
yarn list