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 Installation Error: Switching to NPM Still Causes Slow, Unresponsive To-Do App #21570

Open
1 task done
codingPhuc opened this issue Dec 5, 2024 · 0 comments
Open
1 task done
Labels
status/triage Needs triage

Comments

@codingPhuc
Copy link

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

in the Docker file the yarn installation cause the error bellow to happen even thought your tutorial specify that you just need to run the command
docker compose watch for the application to run

 > [client client-base 2/5] RUN --mount=type=cache,id=yarn,target=/usr/local/share/.cache/yarn     yarn install:
3.970 yarn install v1.22.22
4.221 [1/4] Resolving packages...
4.787 [2/4] Fetching packages...
5.834 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
5.835 error SyntaxError: /usr/local/share/.cache/yarn/v6/npm-is-date-object-1.0.5-0841d5536e724c25597bf6ea62e1bd38298df31f-integrity/node_modules/is-date-object/.yarn-metadata.json: Unexpected end of JSON input
5.835     at JSON.parse (<anonymous>)
5.835     at /opt/yarn-v1.22.22/lib/cli.js:1629:59
5.835     at Generator.next (<anonymous>)
5.835     at step (/opt/yarn-v1.22.22/lib/cli.js:310:30)
5.835     at /opt/yarn-v1.22.22/lib/cli.js:321:13

I try fixing it using npm install yarn but the application still will not show , only a text message containing "Loading..." so I wonder if there is any error with your github code ?
I want to express my gratitude for your help in solving this problem and share this to ensure that future student won't encounter the same problem

Location

https://docs.docker.com/get-started/introduction/develop-with-containers/

Suggestion

thing that need to be change :

  • I change the Dockerfile to used npm install instead of a single install yarn
  • I don't know why the todo page still buffer with a "Loading text " please fix it for me
@codingPhuc codingPhuc added the status/triage Needs triage label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Needs triage
Projects
None yet
Development

No branches or pull requests

1 participant