-
Notifications
You must be signed in to change notification settings - Fork 895
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
on docker-compose build, storefront give build error #43
Comments
@talalsiddiqui can you provide use the full output? Thanks! |
Can you provide us every step you have used to run saleor-platform? |
Apologies for the late reply. |
One thing more, if I install the storefront repo separately, then I face no issues. |
Weird. I will pass it to the storefront team to look into. Outdated packages in package-lock often can cause issues. |
I have the exact error in Ubuntu 16.04.6 (LTS) x64 |
Successfully tagged saleor-platform_storefront:latest npm ERR! network timeout at: https://registry.npmjs.org/@apollographql/graphql-language-service-utils/-/graphql-language-service-utils-2.0.2.tgz Error in Debian10 |
I tried to install in centos 9 and it worked |
Try deleting
Retry, check your connectivity and npm status. |
I have a similar issue on fedora 32: It still appears when building |
So, I managed to solve my above issue by specifying the network. As far as I can tell, this is an issue with docker's embedded DNS but I am not sure about the details. In my case, all I had to do is change the
Anyway, I hope this will be useful to someone else in the same situation. |
Weird. What docker version is it? @geoph9 |
I use It turns out that this is a firewall issue and it is known to the fedora community (I am a new user and I didn't know that). I didn't want to risk it, so I deleted docker and installed moby (as per this) and I have no issues now. |
@NyanKiyoshi I have this kind of issue! |
I also encountered this issue and solved it using this : saleor/saleor#6414 (comment) |
@pipoupiwam can you provide the npm error logs? Run: This is most likely an issue with Can you also provide some additional information, if that's Linux/Unix-based:
If that's Windows, remove that Also, for additional context so we can reproduce, provide the Saleor-Storefront version:
|
same issue when work in macbook m1 |
Specifying network as host worked for me |
network: host does not work properly on Mac, so we solved the issue by adding proxy in the storefront container |
ERROR: Service 'storefront' failed to build: The command '/bin/sh -c npm install' returned a non-zero code: 1
Kindly help me out.
Operatiing system: Ubuntu 18
The text was updated successfully, but these errors were encountered: