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