Skip to content

yarn erroring when run from Dockerfile #869

@nealstewart

Description

@nealstewart

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

When running yarn inside of a Dockerfile, it is

If the current behavior is a bug, please provide the steps to reproduce.

Create a Dockerfile along these lines

FROM node:4.5.0
WORKDIR /opt/my-app
RUN npm install -g yarn
ADD package.json /opt/my-app/
ADD yarn.lock /opt/my-app/
RUN yarn

This spits out an error:

error https://registry.yarnpkg.com/forever/-/forever-0.15.2.tgz: EINVAL: invalid argument, chown '/root/.yarn-cache/npm-forever-0.15.2/package.json'
    at Error (native)

What is the expected behavior?

yarn installing inside of the Docker image

Please mention your node.js, yarn and operating system version.

Node 4.5, yarn 0.15.1, Ubuntu 12.04 (Precise) on Circle CI

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions