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 ls removes installed completions #34

Open
tadayosi opened this issue May 26, 2017 · 1 comment
Open

yarn global ls removes installed completions #34

tadayosi opened this issue May 26, 2017 · 1 comment

Comments

@tadayosi
Copy link

tadayosi commented May 26, 2017

Using yarn I installed tabtab and yarn-completions globally:

$ sudo yarn global add tabtab
$ sudo yarn global add yarn-completions

Now you can see:

$ ll /usr/local/share/.config/yarn/global/node_modules/tabtab/.completions/
total 16K
-rw-r--r--. 1 root root 714 Oct  9  2016 gitbook.bash
-rw-r--r--. 1 root root 440 Oct  9  2016 gitbook.fish
-rw-r--r--. 1 root root 389 Oct 10  2016 gitbook.zsh
-rw-r--r--. 1 root root 696 May 25 16:16 yarn.bash

However, when I do sudo yarn global ls afterwards the installed yarn.bash disappears!!!

$ sudo yarn global ls
yarn global v0.24.5
warning No license field
info "[email protected]" has binaries:
   - tabtab
info "[email protected]" has binaries:
   - completions-yarn
Done in 1.22s.

$ ll /usr/local/share/.config/yarn/global/node_modules/tabtab/.completions/
total 12K
-rw-r--r--. 1 root root 714 Oct  9  2016 gitbook.bash
-rw-r--r--. 1 root root 440 Oct  9  2016 gitbook.fish
-rw-r--r--. 1 root root 389 Oct 10  2016 gitbook.zsh

It happens on both CentOS 7 (via yum repo / with sudo) and macOS (via brew / without sudo).

@tadayosi
Copy link
Author

I'm not sure if it's a tabtab bug or yarn's though.

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

No branches or pull requests

1 participant