I tried to install a package with yarn earlier today and I got this
yarn install yarn install v1.9.4 [1/4]
It may be the library was originally using npm instead of yarn. In my case I had to install everything with npm instead of yarn. I removed the yarn.lock file and then:
yarn.lock
npm install