Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upnpm install leads to error in latest alpine image #1236
Comments
|
This doesn't seem to be an issue with the image but with the install scripts for one of the dependencies failing. Perhaps one of your dependencies relies on node binding that don't support Alpine linux? |
|
But it's supported on the previous version alpine image. How can I find out which dependency? |
|
Does this error also exist in different variants of 13.12.0 image? |
|
Strangely this issue seems to not occur anymore. I successfully built it with node:13.12.0-alpine, node:13.12.0-slim and node:13.12.0 images with |
|
It may be related to slow network connection. It's failing randomly on my system using node:13.8-alpine. Yesterday everything built, today exactly the same dockerfile fails. And on CI where connection is a bit more stable and faster it seems to never fail with this error. Edit. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Dockerfile:
If I run
docker buildit always exits withnpm ERR! cb() never called!After chaning the image to 12.16.0-alpine it works. Also not including
package-lock.jsonfixes this problem.The npm *-debug.log file contains nothing useful:
The JS app I try to dockerize here is a freshly generated Angular app.