a year ago
how do i solve this error in my laravel project
21 | >>> RUN yarn install --frozen-lockfile
22 |
23 | # build phase
ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
Error: Docker build failed
10 Replies
a year ago
this is the full build logs
13 [ 9/12] RUN yarn install --frozen-lockfile
13 0.688 yarn install v1.22.21
13 0.777 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
13 0.780 [1/4] Resolving packages…
13 1.426 error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile
.
13 1.426 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
13 ERROR: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
[ 9/12] RUN yarn install --frozen-lockfile:
0.688 yarn install v1.22.21
0.777 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
0.780 [1/4] Resolving packages…
1.426 error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile
.
1.426 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Dockerfile:21
19 | RUN mkdir -p /var/log/nginx && mkdir -p /var/cache/nginx
20 | RUN composer install --ignore-platform-reqs
21 | >>> RUN yarn install --frozen-lockfile
22 |
23 | # build phase
ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
Error: Docker build failed
a year ago
i tried it but the command is not working, is showing yarn: command not found
a year ago
i use npm locally
a year ago
if i delete the yarn file, should i redeploy the project again?
a year ago
github is not recognizing the changes, it is showing me nothing to commit and i can't deploy it mannually