-
Notifications
You must be signed in to change notification settings - Fork 2.7k
yarn install fails with ENOENT: no such file or directory occasionally #2629
Copy link
Copy link
Closed
linkerd/linkerd2
#3826Labels
cat-bugfixed-in-modernThis issue has been fixed / implemented in Yarn 2+.This issue has been fixed / implemented in Yarn 2+.
Description
Running yarn install as part of a build step for a Docker image based on node:7 fails on Travis CI with ENOTEMPTY, EEXISTS errors. It always seems to error on the webdriverio package.
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.
node:7
OS: Docker + Travis CI
yarn: 0.19.1
package.json
yarn.lock
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cat-bugfixed-in-modernThis issue has been fixed / implemented in Yarn 2+.This issue has been fixed / implemented in Yarn 2+.