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: failed to solve: process "/bin/sh -c yarn install --production" did not complete successfully: exit code: 1 #381
Comments
did you checked the version of metadata? now, I'm following docker tutorial, and have a same issues. this is default example which i've problem. FROM node:12-alpine
RUN apk add --no-cache python2 g++ make
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "/app/src/index.js"] but i checked the version of nodeJS and python, at the CMD. FROM node:14-alpine
RUN apk add --no-cache python3 g++ make
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "/app/src/index.js"] i'm on ubuntu 11.1.0v but I reckon you can solve a problem. |
I have basically same problem. I'm sorry, but docker came strongly recommended for something I'm trying to do. I can't make it past the tutorial. Frown. |
Try |
That worked for me but only after I took out --production thanks Rashiddilkash |
FROM arm64v8/node This my docker file. it worked for me |
That worked for me. |
when i first, my Dockerfile is: |
I had the same issue on Pop!_OS 22.04 (an Ubuntu 22.04 derivative) using Docker Desktop. The solution was to add
To the Docker Engine config file (under Settings -> Docker Engine). Now my config file reads
|
pay 1 million ounces of laddie gold to Austin Greene and he will
aprove this. He promises!
…On 9/13/23, David Radice ***@***.***> wrote:
I had the same issue on Pop!_OS 22.04 (an Ubuntu 22.04 derivative) using
Docker Desktop. The solution was to add
```
"dns": [
"8.8.8.8"
],
```
To the Docker Engine config file (under Settings -> Docker Engine). Now my
config file reads
```
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"dns": [
"8.8.8.8"
],
"experimental": false
}
```
--
Reply to this email directly or view it on GitHub:
#381 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
hello! I not search the error of failed to solve: process "/bin/sh -c yarn install --production" did not complete successfully: exit code: Then I realized that there might be a missing package called npm(The World's Largest Software Registry (Library)) output: What's Next?
|
I am having the same issue. None of the suggestions above worked for me. As suggested by #347, when I try to run:
I get the following output:
|
I have the same question and None of the suggestions above worked for me. |
I'm not sure why but leaving the --production flag doesn't work anymore since 1.0.4 Bun update. |
Please make sure, you have configured .env file in the project level |
Deu certo. Obrigado!! |
ubuntu22.04 |
In my case i just needed to read what docker is writing above In my case docker didn't understand what path |
"RUN yarn install --production --ignore-engines" is work for me |
that solved it for me, thank you dradice. I'm on debian12 and had to create /etc/docker/daemon.json with this content. 👍 |
I am getting similar errors randomly for the It started happening after we switched to Docker bake.
|
hello guys,I think today I figure out this problem in my case.So I'm here to share my solution. My development environment: OS : CentOS Linux release 7.5.1804 Solution process:
Looking at the logs above,I realized I had network issues during the build process.
and I running the command
Look at the logs,It's still use the same url:
Look at the logs,yarn try to fetch dependencies to build Sqlite3.This is why python3 is required here.
Finally,The image has build success after 543.9 seconds.No error report:
|
|
Github Action ( Ubuntu runner )If you want to build for arm arch and get the error on an ubuntu runner, then you need to prepare the environment before start building the image: steps:
# Put these steps before docker build
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 |
Hi, I have an issue, with basically the same effect as #347 but probably a different resolution
docker build from getting-started
I'm on the tutorial, same step as 347
I try to build the image via
docker build -t getting-started .
And I end up with:
docker compose up
Just to try a different build, If I run
docker compose up
from getting-started/ I get :nslookup registry.yarnpkg.com
And finally if I test the connectivity
Clean try
I also tried to clone the repo again and start from scratch and it's the same. It's an issue from my system. I did reboot too.
I'm on Ubuntu 20.04
Would someone have something to recommend to solve this please ?
The text was updated successfully, but these errors were encountered: