sharp icon indicating copy to clipboard operation
sharp copied to clipboard

Cannot install Sharp Android

Open zeyzofc opened this issue 1 year ago • 3 comments

Error: Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp-android-arm64v8.node' Require stack: - /storage/emulated/0/cpanel/node_modules/wa-sticker-formatter/node_modules/sharp/lib/sharp.js - /storage/emulated/0/cpanel/node_modules/wa-sticker-formatter/node_modules/sharp/lib/constructor.js - /storage/emulated/0/cpanel/node_modules/wa-sticker-formatter/node_modules/sharp/lib/index.js - /storage/emulated/0/cpanel/node_modules/wa-sticker-formatter/dist/internal/convert.js - /storage/emulated/0/cpanel/node_modules/wa-sticker-formatter/dist/Sticker.js - /storage/emulated/0/cpanel/node_modules/wa-sticker-formatter/dist/index.js - /storage/emulated/0/cpanel/zeyz.js - /storage/emulated/0/cpanel/function/chache.js - /storage/emulated/0/cpanel/index.js Possible solutions: - Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp" - Install for the current android-arm64v8 runtime: "npm install --platform=android --arch=arm64v8 sharp" - Consult the installation documentation: https://sharp.pixelplumbing.com/install at Object. (/storage/emulated/0/cpanel/node_modules/wa-sticker-formatter/node_modules/sharp/lib/sharp.js:34:9) at Module._compile (node:internal/modules/cjs/loader:1434:14) at Module._extensions..js (node:internal/modules/cjs/loader:1518:10) at Module.load (node:internal/modules/cjs/loader:1249:32) at Module._load (node:internal/modules/cjs/loader:1065:12) at Module.require (node:internal/modules/cjs/loader:1271:19) at require (node:internal/modules/helpers:123:16) at Object. (/storage/emulated/0/cpanel/node_modules/wa-sticker-formatter/node_modules/sharp/lib/constructor.js:8:1) at Module._compile (node:internal/modules/cjs/loader:1434:14) at Module._extensions..js (node:internal/modules/cjs/loader:1518:10) Node.js v22.2.0

I installed Sharp on Termux and an error occurred as above. What is the solution ?

zeyzofc avatar Jun 27 '24 14:06 zeyzofc

Please ensure you are using the latest version (the issue template asked you to confirm this, but that section was ignored/deleted).

https://sharp.pixelplumbing.com/install#cross-platform

npm install --cpu=arm64 --os=linux --libc=glibc sharp

lovell avatar Jun 27 '24 15:06 lovell

Doesn't work for me :(

zeyzofc avatar Jun 28 '24 01:06 zeyzofc

Sadly there's not enough information here for anyone to help you. Perhaps you could refer back to the installation issue template that was deleted and provide answers to all of the questions it asked. These questions, and the answers you provide, exist to help me to help you. By not providing answers you're slowing your access to possible solutions.

lovell avatar Jun 28 '24 10:06 lovell

@zeyzofc Were you able to make any progress with this? If not, and you still require help, please provide the requested information.

lovell avatar Jul 16 '24 07:07 lovell

Why fu*king closing this?

Jobians avatar Jan 03 '25 21:01 Jobians

Try

npm install @img/sharp-wasm32

Jobians avatar Jan 03 '25 22:01 Jobians