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:
npm install
I got this as well.
I ran yarn install --no-lockfile
and it worked, so I deleted the node modules again and deleted yarn.lock
. It looks like a bug in yarn, because yarn wasn't having issues in previous versions of my application.
Try increasing network timeout
yarn install --network-timeout 1000000
found this on GitHub issues https://github.com/yarnpkg/yarn/issues/4890
I had the same issue and solved by following steps:
Run the terminal command
Restart your terminal.
it worked for me.
I had the same network retrying issue when I used yarn install
, simply using yarn
worked for me.
In my case, there was a hidden file .npmrc
that had the registry pointed to a location in another private network, which my network did not have access to. Once, I commented out the private network related entries in this file, yarn install
started working. Also, yarn-error.log
was generated, that had this information.