Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn not found after update #398

Closed
juliocanares opened this issue May 7, 2017 · 1 comment
Closed

Yarn not found after update #398

juliocanares opened this issue May 7, 2017 · 1 comment

Comments

@juliocanares
Copy link

juliocanares commented May 7, 2017

Hey everyone,

I was having issues with yarn 0.23.4, it doesn't work with node-gyp package.
One workaround is to install it before yarn install

RUN yarn global add node-gyp
RUN yarn install

As you can see here #346 it has been fixed in the latest pre-release. I already tried and it works.
But since this repo installs 0.23.4 by default I needed to delete it and install the latest pre-release using the following instructions.

FROM node:7.10.0
RUN rm -f /usr/local/bin/yarnpkg
RUN rm -f /usr/local/bin/yarn
RUN rm -rf ${HOME}/.yarn

RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.24.2

ENV PATH /root/.yarn/bin:$PATH

RUN yarn -v

it throws the following while executing RUN yarn-v

/root/.yarn/bin/yarn: 15: /root/.yarn/bin/yarn: [[: not found
yarn install v0.24.2
info No lockfile found.

It works! but still seeing
/root/.yarn/bin/yarn: 15: /root/.yarn/bin/yarn: [[: not found

any thoughts on this?

@pesho
Copy link
Contributor

pesho commented May 7, 2017

Sorry, this is not the proper place for this question, your problem is not with the node image. If you need help with Yarn's install script (which we do not use), please use their issue tracker.

@pesho pesho closed this as completed May 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants