I\'m working with Yarn v0.16.1. If I understand correctly (according to the documentation), yarn global add should be the equivalent of np
yarn global add
np
On Ubuntu, I fixed by installing the package like this:
sudo yarn global add --prefix /usr/local