zhangyuanwei / node-images

Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Nodejs
https://npmjs.org/package/images
MIT License
1.55k stars 205 forks source link

official node alpine 8.x unsupported :( #173

Open Hikingyo opened 5 years ago

Hikingyo commented 5 years ago

Hello and thanks for your job. I use an official docker image node:8.12.0-alpine but when I want to install your package, I got an error

bash-4.4# npm install images

> images@3.0.2 install /www/node_modules/images > node ./scripts/install.js

Downloading binary from https://github.com/zhangyuanwei/node-images/releases/download/v3.0.2>/linux_musl-x64-57_binding.node Cannot download "https://github.com/zhangyuanwei/node-images/releases/download/v3.0.2/linux_musl-x64-57_binding.node":

HTTP error 404 Not Found

In fact, there is no bind for linux-musl, but it is an offical docker image from https://hub.docker.com/_/node/

qdechochen commented 5 years ago

I have the same issue. Did you fix this? How? Or changed to something else? thx.

flftfqwxf commented 5 years ago

这个问题还没解决么?写了半天发现测试上装不了!

moonrailgun commented 5 years ago

https://github.com/zhangyuanwei/node-images/blob/634bd909a7fb9cf0656b70b7bcb98dbe4f7f1920/scripts/util/extensions.js#L27

https://github.com/zhangyuanwei/node-images/blob/634bd909a7fb9cf0656b70b7bcb98dbe4f7f1920/scripts/util/extensions.js#L182-L209

this problem is cause by node-image prebuild not include linux_musl which alpine linux platform

To fix it, you can build it by yourself or use full linux docker image like node:8.12.0 rather than node:8.12.0-alpine