We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 link
Do you want to request a feature or report a bug?
Request a feature.
What is the current behavior?
yarn link does not register the binary as a global symlink the way npm link does.
npm link
What is the expected behavior?
Running yarn link should create links to both the package main file and the bin file, the same way npm link does.
main
bin
So, if my package.json contains a bin file, e.g.
{ "bin": { "example": "./bin/cli.js" } }
... then running yarn link should symlink bin/cli.js as example in my global bin folder, making example a global command.
bin/cli.js
example
Please mention your node.js, yarn and operating system version.
$ node -v && yarn --version && sw_vers v8.1.1 0.24.5 ProductName: Mac OS X ProductVersion: 10.12.5 BuildVersion: 16F73
The text was updated successfully, but these errors were encountered:
PR is welcome, the code is here https://github.com/yarnpkg/yarn/blob/master/src/cli/commands/link.js
Sorry, something went wrong.
This was fixed in #3721.
I'm running 1.3.2 and I don't get global bin created after doing yarn link. npm link works as expected.
No branches or pull requests
Do you want to request a feature or report a bug?
Request a feature.
What is the current behavior?
yarn link
does not register the binary as a global symlink the waynpm link
does.What is the expected behavior?
Running
yarn link
should create links to both the packagemain
file and thebin
file, the same waynpm link
does.So, if my package.json contains a
bin
file, e.g.... then running
yarn link
should symlinkbin/cli.js
asexample
in my global bin folder, makingexample
a global command.Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: