-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Failed to install sharp on termux #4161
Comments
Please upgrade to the latest version of ipx and therefore the latest version of sharp. For Termux, you'll also need to configure npm to ensure it knows the OS is Linux using the |
when I run Package xproto was not found in the pkg-config search path. I afraid Termux does not directly support X11 libraries and related packages like xproto. please further help! |
This comment was marked as off-topic.
This comment was marked as off-topic.
@ahtashamabbasse This issue relates to Termux. If you're still having problems, please open a new installation issue and answer all of the questions. |
@JaydenWooCn Please can you provide the complete output of running the following in an empty directory.
|
Thank you for your help, it seems that it work. so waht should I do next step? npm install --os=linux --verbose --foreground-scripts sharp
sharp: Detected globally-installed libvips v8.15.2 added 9 packages in 7s 1 package is looking for funding |
@lovell I have you show you the script output, please check. could you give me further help? any suggestion? Thank you! |
In your first comment you provided an error seen when installing a version of sharp that is not the latest. From your most recent comment it looks like installing the latest version works. It looks like you're using sharp through the ipx dependency, so therefore please upgrade to the latest version of ipx and therefore the latest version of sharp. |
This is a nuxtjs project, have a @nuxt/image component there.
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-android-arm64v8.tar.br
✔ Types generated in .nuxt 3:45:26 PM added 5 packages, and audited 685 packages in 20s 138 packages are looking for funding found 0 vulnerabilitiesI think some package dependence on sharp@0.32.6, so it want to install that version, but I don't sknow which package dependence on it. So could you give me any suggesion? |
Even when I run this script npm install --os=linux --save sharp@0.33.4
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-android-arm64v8.tar.br
sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-android-arm64v8.tar.br |
What is the output of running |
@lovell This the output, please check. npm ls sharp So I need to set the ipx version to ipx3.0.1(latest), right? I have a try right now |
Change the ipx to the latest version in @nuxt/image package.json solve my problem. Thank you very much lovell! I can't solve it without your help! |
I develop in termux linux.
when I try to install @nuxt/image in my nuxt project, error: sharp: Installation Prebuilt libvips 8.14.5 binaries are not yet available for android-arm64v8
then I try to run: npm install --unsafe-perm --platform=linux sharp, error:
sharp: Installation error: EACCES: permission denied, link '/data/data/com.termux/files/home/projects/greenroom/greenroom/node_modules/ipx/node_modules/sharp/vendor/8.14.5/linux-arm64v8/include/libpng16/pngconf.h' -> '/data/data/com.termux/files/home/projects/greenroom/greenroom/node_modules/ipx/node_modules/sharp/vendor/8.14.5/linux-arm64v8/include/pngconf.h'
The text was updated successfully, but these errors were encountered: