When I try to use any command using yarn global, like 'yarn global add yo
', I get an error saying ERROR: [Errno 2] No such file or directory: 'global'.
Could not find matching solutions on the internet. Any help will be appreciated. Thanks!
A (alternative) solution:
When I installed yarn using Debian package repository, I got the error mentioned in the question while doing yarn global
.
However, when I installed yarn using npm, like this:
npm install -g yarn
I did not get the error anymore upon doing yarn global
. Any explanation or detailed answer addressing the issue with installation using Debian package repository is welcome.