Yarn: Yarn shows the available bin commands twice

Created on 22 Nov 2016  路  2Comments  路  Source: yarnpkg/yarn

Do you want to request a feature or report a bug?: bug

What is the current behavior?

Yarn shows the available commands (great feature btw) twice.

yarn run
yarn run v0.17.8
error No command specified.
info Commands available from binary scripts: coveralls, eslint, flow, jest, jsdoc, rollup, coveralls, eslint, flow, jest, jsdoc, rollup
info Project commands
   - coveralls
   - doc
   - flow
   - jest
   - lint
   - test
question Which command would you like to run?:

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

yarn run
yarn run v0.17.8
error No command specified.
info Commands available from binary scripts: coveralls, eslint, flow, jest, jsdoc, rollup
info Project commands
   - coveralls
   - doc
   - flow
   - jest
   - lint
   - test
question Which command would you like to run?:

Please mention your node.js, yarn and operating system version.

  • node 7.1.0
  • yarn 0.17.8
  • macOS 10.12.1
cat-bug

All 2 comments

Oh, this bug is even mentioned in the test. I think this can be a good first bug for anyone starting to contribute to yarn. Essentially, the problem arises because of the npm and yarn registry looking both in node_modules. An additional check on registry's binary paths is needed.

Hey, I've fixed this via https://github.com/yarnpkg/yarn/pull/2019 - could you please check it?

Was this page helpful?
0 / 5 - 0 ratings