The 'docker compose watch' command is executed with an error

I’m running the “Develop with containers” section. The ‘docker compose watch’ command is executed with an error.

 => ERROR [backend backend-dev 2/4] RUN --mount=type=cache,id=yarn,target=/usr/local/share/.cache/yarn     yarn install --frozen-lockfile                         48.3s
 => CANCELED [client client-base 2/5] RUN --mount=type=cache,id=yarn,target=/usr/local/share/.cache/yarn     yarn install                                         48.9s
------
 > [backend backend-dev 2/4] RUN --mount=type=cache,id=yarn,target=/usr/local/share/.cache/yarn     yarn install --frozen-lockfile:
3.817 yarn install v1.22.22
3.871 warning package.json: No license field
4.057 warning backend@1.0.0: No license field
4.074 [1/4] Resolving packages...
5.144 [2/4] Fetching packages...
29.22 error https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001583.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, chmod '/usr/local/share/.cache/yarn/v6/npm-caniuse-lite-1.0.30001583-abb2970cc370801dc7e27bf290509dc132cfa390-integrity/node_modules/caniuse-lite/data/regions/MC.js'"
29.22 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
failed to solve: process "/bin/sh -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1

The ‘localhost’ website does not allow me to establish a connection.

I thought I already replied, but it looks like I just wanted and bookmarked the topic.

So it looks like an applocation issue. I could be wrong, but the error occurs during the image build process and all I see isyarn errors.

I would search for the error message after the tgz URL: “Extracting tar content of undefined failed”

You can find issues like this:

Or this:

Although it indeed mentions Docker, but who doesn’t nowadays? :slight_smile:

If you can share a small test Dockerfile and commands to reproduce the issue, someone might be able to find time to test it.

If you share any code, please use code blocks the way I edited your original post. Help is also in our formatting guide: How to format your forum posts

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.