Running yarn install
on a Windows executor (using circleci/windows@2.4.0
orb) fails with a timeout error. This same line works fine on the macOS and linux environments we’re using. The error is shown below:
#!bash.exe
yarn
yarn install v1.16.0
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error https://registry.yarnpkg.com/date-fns/-/date-fns-2.14.0.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, stat 'C:\\Users\\circleci\\AppData\\Local\\Yarn\\Cache\\v4\\npm-date-fns-2.14.0-359a87a265bb34ef2e38f93ecf63ac453f9bc7ba\\node_modules\\date-fns\\esm\\fp\\subWeeks\\index.js'"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
info There appears to be trouble with your network connection. Retrying...
Exited with code exit status 1
CircleCI received exit code 1