yarn install v0.19.1 [1/4] Resolving packages... [2/4] Fetching packages... error An unexpected error occurred: "https://registry.yarnpkg.com/webdriverio/-/webdriverio-4.6.2.tgz: ENOENT: no such file or directory, open '/usr/local/share/.cache/yarn/npm-webdriverio-4.6.2-dd095ee618896a21c8f1b9d4278736d85a64ca0f/lib/protocol/timeouts.js'".
When Travis runs
yarn install as part of the install phase it works just fine. The error only happens when building a Docker image.
Repo which reproduces this issue.
I’ve tried installing yarn both with
npm install -g and with
apt and both methods cause the failure on Travis.
Weirdly enough, the image builds successfully on my local machine which runs Ubuntu 16.04.1 LTS with Docker version 1.13.0, build 49bf474.