How to display yarn globally installed packages?

后端 未结 3 469
谎友^
谎友^ 2020-12-24 11:32

I am using MacOs Sierra 10.12.4 and I have installed yarn by brew install yarn and it\'s version is yarn version v0.23.2

I installed

3条回答
  •  没有蜡笔的小新
    2020-12-24 12:28

    yarn global list is currently broken, too. See the related issue.

    Currently I directly list Yarn global packages folder content:

    • Windows: %LOCALAPPDATA%/Yarn/config/global
    • OSX and Linux non-root: ~/.config/yarn/global
    • Linux if logged in as root: /usr/local/share/.config/yarn/global

    Update June 22, 2020

    As of May 12, 2017 this problem has been resolved. See issue and pull request.

    So you can use yarn global list to list all globally installed packages.

提交回复
热议问题