I can use npm list -g get the global npm list?
Due to yarn document, I use yarn global ls ,but no use.
And yarn list just get packages in current file path ..
What version of Yarn? (yarn --version)
yarn global ls should be fixed as of 0.24.2
In my case, I need type sudo -E before yarn command.
for example:
$ sudo -E yarn global ls --depth=0
(yarn version 0.27.5)
yarn global ls is deprecated you can go with yarn global list
Most helpful comment
What version of Yarn? (
yarn --version)yarn global lsshould be fixed as of 0.24.2