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 global add not symlinking binaries to $(yarn global bin) #6596

Open
danvk opened this issue Oct 29, 2018 · 1 comment
Open

yarn global add not symlinking binaries to $(yarn global bin) #6596

danvk opened this issue Oct 29, 2018 · 1 comment
Assignees
Labels

Comments

@danvk
Copy link

danvk commented Oct 29, 2018

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

I want to report a bug.

What is the current behavior?

$ yarn global add topojson
...
success Installed "topojson@3.0.2" with binaries:
      - geo2topo
      - toposimplify
      - topo2geo
      - topomerge
      - topoquantize
✨  Done in 2.79s.

$ yarn global bin
/usr/local/bin

$ ls /usr/local/bin/topo2geo
ls: /usr/local/bin/topo2geo: No such file or directory

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

(see above)

What is the expected behavior?

I'd expect topo2geo to be available in yarn global bin, i.e. /usr/local/bin.

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

$ yarn --version
1.12.1

$ node --version
v11.0.0

I'm on macOS High Sierra 10.13.6 (17G65).

Running with yarn --verbose global add topojson, I see the following:

verbose 6.392 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson/.bin/geo2topo" to "/Users/danvk/.config/yarn/global/node_modules/topojson/node_modules/topojson-server/bin/geo2topo".
verbose 6.392 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson/.bin/topo2geo" to "/Users/danvk/.config/yarn/global/node_modules/topojson/node_modules/topojson-client/bin/topo2geo".
verbose 6.393 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson/.bin/topomerge" to "/Users/danvk/.config/yarn/global/node_modules/topojson/node_modules/topojson-client/bin/topomerge".
verbose 6.393 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson/.bin/topoquantize" to "/Users/danvk/.config/yarn/global/node_modules/topojson/node_modules/topojson-client/bin/topoquantize".
verbose 6.393 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson/.bin/toposimplify" to "/Users/danvk/.config/yarn/global/node_modules/topojson/node_modules/topojson-simplify/bin/toposimplify".
verbose 6.393 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson-server/.bin/geo2topo" to "/Users/danvk/.config/yarn/global/node_modules/topojson-server/bin/geo2topo".
verbose 6.393 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson-simplify/.bin/toposimplify" to "/Users/danvk/.config/yarn/global/node_modules/topojson-simplify/bin/toposimplify".
verbose 6.393 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson-client/.bin/topo2geo" to "/Users/danvk/.config/yarn/global/node_modules/topojson-client/bin/topo2geo".
verbose 6.393 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson-client/.bin/topomerge" to "/Users/danvk/.config/yarn/global/node_modules/topojson-client/bin/topomerge".
verbose 6.393 Creating symlink at "/Users/danvk/.config/yarn/global/node_modules/topojson-client/.bin/topoquantize" to "/Users/danvk/.config/yarn/global/node_modules/topojson-client/bin/topoquantize".

so the symlinks are being created, just not in a useful place.

@ghost ghost assigned kaylie-alexa Oct 29, 2018
@ghost ghost added the triaged label Oct 29, 2018
@xcash
Copy link

xcash commented Jul 18, 2019

A workaround is to use sudo yarn global ...
In Jul 2019 this problem is still present and the output is misleading.

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

No branches or pull requests

3 participants