Though my android supports node, I get this error everytime I do an npm install
$ npm install
npm ERR! Linux 3.10.49-g80097ed
npm ERR! argv "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/bin/npm" "install"
npm ERR! node v6.9.3
npm ERR! npm v3.10.10
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"linux,darwin,win32","arch":"x64,arm,ia32"} (current: {"os":"android","arch":"arm"})
npm ERR! notsup Valid OS: linux,darwin,win32
npm ERR! notsup Valid Arch: x64,arm,ia32
npm ERR! notsup Actual OS: android
npm ERR! notsup Actual Arch: arm
npm ERR! Please include the following file with any support request:
npm ERR! /data/data/com.termux/files/home/ReviveBot/npm-debug.log
The error comes from node-opus, not node-gyp. That said, node.js does not officially support android and neither does node-gyp nor indeed most of the ecosystem. If you run into issues, you'll most likely have to fix them yourself. Good luck!
Same thing tell a way to fix it
@bnoordhuis Android is technically just linux