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

error finding yarn package in docker build #275

Open
ahmad-alwazzan opened this issue May 15, 2023 · 2 comments
Open

error finding yarn package in docker build #275

ahmad-alwazzan opened this issue May 15, 2023 · 2 comments

Comments

@ahmad-alwazzan
Copy link

I get the following during the build fazee of front end

 => ERROR [deps 5/5] RUN yarn install --frozen-lockfile                                                                                                                                                               102.4s
------
 > [deps 5/5] RUN yarn install --frozen-lockfile:
#0 0.516 yarn install v1.22.19
#0 0.666 [1/4] Resolving packages...
#0 2.005 [2/4] Fetching packages...
#0 87.15 error An unexpected error occurred: "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz: Request failed \"404 Not Found\"".
#0 87.15 info If you think this is a bug, please open a bug report with the information provided in "/home/node/app/yarn-error.log".
#0 87.15 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
Dockerfile:7
--------------------
   5 |     WORKDIR /home/node/app
   6 |     COPY package.json yarn.lock ./
   7 | >>> RUN yarn install --frozen-lockfile
   8 |
   9 |     # Rebuild the source code only when needed
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
ERROR: Service 'frontend' failed to build : Build failed

I would appreciate a fix.

@diegomais
Copy link
Owner

diegomais commented May 15, 2023

@ahmad-alwazzan thank you for your interest in this project.
I cloned the project and ran the command again and it worked as expected.
I appreciate your effort, but would you mind giving it another test just to be sure?
I believe it was just some problem downloading this package.

@ahmad-alwazzan
Copy link
Author

ahmad-alwazzan commented May 15, 2023

thanks for responding,

the error is resolved now, I guess it could have been the repository not being available at the time.

I did manage to get it to run, but I couldn't manage to do much with it. Is there an adminUI that I can use for adding barbers?

Also, is there any swagger api documentation page for the backend?

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