-
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
yarn global ls
does not list global packages
#3142
Comments
I found the same thing. I have a yarn bin # /Users/codybrunner/node_modules/.bin
yarn global bin # /usr/local/bin I'm not 100% understanding the paths for both of these and how I end up with globals being installed at & read from When I installed brew install yarn
yarn global bin # /usr/local/Cellar/node/7.9.0/bin
yarn config set prefix /usr/local/
vi ~/.profile
# export PATH=/usr/local/Cellar/node/7.9.0/bin:$PATH
source ~/.profile
# new path for global bin
yarn global bin # /usr/local/bin All globals are working fine I just don't understand why globals are being installed where they are being installed. I think that is the issue for
|
Also have this issue. Possibly related to #648? Tried removing and reinstalling node, npm, and yarn with various methods (from the package, from homebrew, script) each with the same result: Is the library moving things around and out of sync? Also confirmed that |
yes i have exactly the same problem. But |
* add test for global bin command * add test for global add command * add test for global remove * add test for global ls command and fix issue #3142 * add test for global upgrade * move tests with side-effects under isCI branch; the other tests now are side-effects free * the global folder in win32 platform is prefix env/parameter without bin folder inside, do assert only on global folders for yarn global v0.23.3 Done in 0.26s.
This is happening for me also. I can still access the globally installed packages just fine. Outputs:
$ yarn global ls
yarn global v0.23.3
warning No license field
Done in 0.37s.
versions:
NOTE: I have custom npm config directories set, so that is why my directories may be different. If required, here's the relevant snippet from my zsh config files: export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/config
export NPM_CONFIG_CACHE=$XDG_CACHE_HOME/npm
export NPM_CONFIG_TMP=$XDG_RUNTIME_DIR/npm
export NPM_CONFIG_PREFIX=$XDG_DATA_HOME/npm
PATH="$NPM_CONFIG_PREFIX/bin:$PATH" Let me know if more information is required. I'm interested in getting to the bottom of this. |
Just the same issue, all the globally installed packages I have, I did it with yarn so |
@rockchalkwushock yep I think so :) please let me know it is ok! |
Can't wait for release 0.24! 😁 |
Fixed in RC v0.24.2 |
Something is not good here (version v0.24.5).
|
@ipa1981 You need to set either yarn prefix to npm's one, or the other way around, and then reinstall all packages that aren't listed. I've also noticed that yarn will list only those packages with binaries. |
@luchillo17 shouldn't this work out of the box? |
Yes, that's just a hack for you to get going meanwhile. |
Yarn 0.24 corrected it for me |
@khaosdoctor |
@luchillo17 @jmsmrgn mentioned it was Fixed in RC v0.24.2, but it doesn't look to be so in our cases. |
@luchillo17 I'm using 0.24.6 and it is corrected here 😮 |
@khaosdoctor I use 0.24.6 and it doesn't produce same list as npm.
|
@khaosdoctor What i refer is the output of @ipa1981, the list of global packages is different between |
@luchillo17 @ipa1981 Indeed, My yarn command returns mostly the same modules, but not all of the listed on npm and vice versa |
Same problem |
same in yarn@1.7.0 |
Same in yarn 1.9.4. Any plans to fix this? Or at least not mark the issue as closed... |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
list all globally installed packages
Please mention your node.js, yarn and operating system version.
node v7.9.0 (installed w/nvm)
yarn v0.23.2 (installed w/curl)
mac OS 10.12.4
yarn v0.22.0 contains #2689 and rolling back to v0.21.3 fixes the issue.
The text was updated successfully, but these errors were encountered: