Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn bin does not respect --modules-folder #6918

Closed
allenwu1973 opened this issue Jan 14, 2019 · 1 comment · Fixed by #6850
Closed

yarn bin does not respect --modules-folder #6918

allenwu1973 opened this issue Jan 14, 2019 · 1 comment · Fixed by #6850
Assignees
Labels

Comments

@allenwu1973
Copy link

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

What is the current behavior?
yarn bin does not respect modules-folder

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

$ pwd
/tmp/test
$ yarn add webpack --modules-folder vendor/node_modules/
$ ls vendor/node_modules/.bin/
acorn  atob  errno  json5  miller-rabin  mkdirp  rimraf  sha.js  terser  webpack
$ yarn bin webpack --modules-folder vendor/node_modules/
error Couldn't find a binary named "webpack"
$ yarn bin --modules-folder vendor/node_modules/
/tmp/test/node_modules/.bin

What is the expected behavior?
yarn bin should utilize modules-folder flag and report the correct path

Please mention your node.js, yarn and operating system version.
node v8.11.1
yarn v1.13.0
ubuntu 16.04

@ghost ghost assigned rally25rs Jan 14, 2019
@ghost ghost added the triaged label Jan 14, 2019
@rally25rs rally25rs added cat-bug and removed triaged labels Jan 14, 2019
@rally25rs
Copy link
Contributor

Could modify #6850 to handle this, since that PR hasn't been accepted yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants