Skip to content

Since 1.2.1: error Could not open cafile: EISDIR: illegal operation on a directory, read #4695

Closed
@hexa00

Description

What is the current behavior?

Using yarn with workspaces while building Theia I now get erros like:

@theia/cli: > yarn run clean && yarn run build
@theia/cli: npm info lifecycle @theia/cli@0.1.1~prepare: @theia/cli@0.1.1
@theia/cli: error Could not open cafile: EISDIR: illegal operation on a directory, read
@theia/cli: error Could not open cafile: EISDIR: illegal operation on a directory, read

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

You can reproduce with;

git clone https://github.com/theia-ide/theia \
&& cd theia \
&& yarn 

What is the expected behavior?

With yarn 1.0.2 I do not get this error.

Please mention your node.js, yarn and operating system version.
npm --version
5.3.0
OS: linux

Note you can also use this Dockerfile to reproduce:

FROM node:8
RUN useradd --create-home theia
WORKDIR /home/theia
RUN rm -rf /opt/yarn && rm -f /usr/local/bin/yarn && rm -f /usr/local/bin/yarnpkg
RUN apt-get update && apt-get install -y npm && npm install -g yarn@1.2.1
USER theia
RUN git clone --depth 1 https://github.com/theia-ide/theia && \
    cd theia && \
    yarn
EXPOSE 3000
WORKDIR /home/theia/theia/examples/browser
CMD yarn run start

You will see the error while doing a docker build -t theia .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions