Unable to install in Termux
See original GitHub issueHere’s the terminal output:
$ npm install --unsafe-perm sharp
> sharp@0.23.1 install /data/data/com.termux/files/home/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-android-armv7.tar.gz
/data/data/com.termux/files/home/node_modules/sharp/install/libvips.js:85
throw new Error(`Status ${response.statusCode}`);
^
Error: Status 404
at /data/data/com.termux/files/home/node_modules/sharp/install/libvips.js:85:17
at f (/data/data/com.termux/files/home/node_modules/once/once.js:25:25)
at ClientRequest.<anonymous> (/data/data/com.termux/files/home/node_modules/simple-get/index.js:63:5)
at Object.onceWrapper (events.js:299:26)
at ClientRequest.emit (events.js:209:13)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:583:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:115:17)
at TLSSocket.socketOnData (_http_client.js:456:22)
at TLSSocket.emit (events.js:209:13)
at addChunk (_stream_readable.js:305:12)
make: Entering directory '/data/data/com.termux/files/home/node_modules/sharp/build'
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
warning: unknown warning option '-Wno-cast-function-type'; did you mean '-Wno-bad-function-cast'? [-Wunknown-warning-option]
../src/common.cc:25:10: fatal error: 'vips/vips8' file not found
#include <vips/vips8>
^~~~~~~~~~~~
1 warning and 1 error generated.
make: *** [sharp.target.mk:127: Release/obj.target/sharp/src/common.o] Error 1
make: Leaving directory '/data/data/com.termux/files/home/node_modules/sharp/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack at ChildProcess.emit (events.js:209:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 3.18.22
gyp ERR! command "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /data/data/com.termux/files/home/node_modules/sharp
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/data/data/com.termux/files/home/package.json'
npm WARN home No description
npm WARN home No repository field.
npm WARN home No README data
npm WARN home No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.23.1 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.23.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /data/data/com.termux/files/home/.npm/_logs/2019-09-26T17_47_57_782Z-debug.log
$
Any suggestions of how to resolve this would be appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Can't install anything on termux for android - Reddit
Can't install anything on termux for android · Do you have it installed via F-Droid (The Google Playstore variant is discontinued) · try...
Read more >"termux was unable to install the bootstrap packages" when I ...
1.To uninstall and install termux from play-store multiple times. 2.Install previous versions of the app but with no success. 3.The fixed apk ...
Read more >Termux will not install - Apps - F-Droid Forum
What I would try is to install Split APKs Installer and then install Termux APK with it. If installation fails, there is a...
Read more >Issue with Termux bootstrap - Stack Overflow
Unable to Install Termux was unable to install the bootstrap packages. Check your network connection and try again.
Read more >Termux - Apps on Google Play
NOTE: If you're having issues with installing or updating packages - see https://github.com/termux/termux-packages/wiki/Package-Management
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Does forcing the platform to be Linux rather than Android help?
Also you can try to install ubuntu 20 and install v packages