Closed
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