Skip to content
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

[Solved] Install error on Android (termux) #57

Closed
ooling opened this issue Nov 21, 2022 · 11 comments
Closed

[Solved] Install error on Android (termux) #57

ooling opened this issue Nov 21, 2022 · 11 comments

Comments

@ooling
Copy link

ooling commented Nov 21, 2022

I'd typed npm install -D -E astro-compress but got error like this :
Screenshot_20221121-183719394

[##################] - reify:css-tree: timing reifyNode:node_modules/
> sharp@0.31.2 install
> (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.13.3/libvips-8.13.3-android-arm64v8.tar.br
sharp: Installation error: Prebuilt libvips 8.13.3 binaries are not yet available for android-arm64v8
sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! code 1
npm ERR! path /data/data/com.termux/files/home/samxuling.github.io/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c -- (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)

It say Prebuilt libvips 8.13.3 binaries are not yet available for android-arm64v8
Is the download address incorrect? 🤔
When I navigated to https://github.com/lovell/sharp-libvips/releases/download/v8.13.3/libvips-8.13.3-android-arm64v8.tar.br GitHub say 404

@NikolaRHristov
Copy link
Member

NikolaRHristov commented Nov 21, 2022

I don't think Sharp has support for Android 😁 https://github.com/lovell/sharp-libvips

@NikolaRHristov
Copy link
Member

astro-compress uses sharp to compress images

@NikolaRHristov
Copy link
Member

You can try using it on codesanbox.io if you're on an Android phone, as it emulates the environment, instead of running it locally.

@ooling
Copy link
Author

ooling commented Nov 21, 2022

astro-compress uses sharp to compress images

How to exclude it from installation process?
I'll appreciate it if you help, because I only have Android to learn web development

@ooling
Copy link
Author

ooling commented Nov 21, 2022

You can try using it on codesanbox.io if you're on an Android phone, as it emulates the environment, instead of running it locally.

I want to publish to my GitHub Pages not doing experiment on codesandbox

@NikolaRHristov
Copy link
Member

I've cooked up a special build for you, you can try by installing astro-compress#no-sharp like so:

npm install -D -E astro-community/astro-compress#no-sharp

This pulls from the https://github.com/astro-community/astro-compress/tree/no-sharp branch. 😊 Hope this helps!

@NikolaRHristov
Copy link
Member

It will still compress your other files while leaving the images alone.

@ooling
Copy link
Author

ooling commented Nov 22, 2022

Noice! Thanks you so much! 👍
Screenshot_20221122-131243774

@ooling ooling closed this as completed Nov 22, 2022
@ooling ooling changed the title Install error on Android (termux) [Solved] Install error on Android (termux) Nov 22, 2022
@sohaha
Copy link

sohaha commented Feb 8, 2023

mac m1 seems to be doesn't support

@NikolaRHristov
Copy link
Member

Hi, @sohaha could you open a new issue, detailing the exact report and what doesn't work?

@sohaha
Copy link

sohaha commented Feb 8, 2023

@nikolaxhristov It doesn't feel necessary, because it's also a sharp issue, and the latest version of m1 macOS doesn't seem to be supported yet. 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants