-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Scoped binary deps are not added to node_modules/.bin #1487
Comments
e.g. @jokeyrhyme/node-init: just something I put together to keep certain conventions consistent across all my Node.js projects yarn global add @jokeyrhyme/node-init
node-init --version
# => zsh: command not found: node-init
npm install --global @jokeyrhyme/node-init
node-init --version
# => 1.6.0 |
Would love to see this fixed. npm scripts referencing local binaries must inconveniently use the full paths. Thanks! |
Whenever I run |
Back to |
This comment has been minimized.
This comment has been minimized.
Looks like this was fixed in #3310 (same as #2758 (comment)) This should be able to be closed 👍 |
|
Actually, switching to npm, I realized the package was had errors in the binary names. Npm fails with an ENOENT error at install which is ok. Yarn succeeds without any warning. I think Yarn should at least issue a warning or maybe just fail to remain in sync with Npm behavior. An explicit error would be good to. Maybe something like: And I agree with @lukebatchelor it should be closed as it's resolved (it will make it clear to everyone it's closed and they should triple check the packages). |
Thanks, @sandorfr |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
bin
field in its package.json.yarn
ls -al node_modules/.bin/
What is the expected behavior?
At least that is what npm does and we started depending on it.
Please mention your node.js, yarn and operating system version.
Yarn: 0.16.1
Node: v6.7.0
OS: macOS Sierra
The text was updated successfully, but these errors were encountered: