node-sass icon indicating copy to clipboard operation
node-sass copied to clipboard

Android support

Open navarroaxel opened this issue 8 years ago • 13 comments

I'm trying to compile my website using Termux in my Android device, but when I run npm i node-sass I get the following error:

[email protected] install /data/data/com.termux/files/home/t/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.2/android-arm-48_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.2/android-arm-48_binding.node":

Could you provide a precompiled version for Android/ARM? Could be awesome!

When reporting an bug, you must provide this information:

  • NPM version (npm -v): 3.10.10
  • Node version (node -v): 6.10.2
  • Node Process (node -p process.versions): {http_parser: '2.7.0', node: '6.10.2', v8: '5.1.281.98', uv: '1.9.1', zlib: '1.2.8', ares: '1.12.0', modules: '48', openssl: '1.0.2k' }
  • Node Platform (node -p process.platform): android
  • Node architecture (node -p process.arch): arm
  • node-sass version (node -p "require('node-sass').info"): Cannot find module 'node-sass'
  • npm node-sass versions (npm ls node-sass): ERR!

navarroaxel avatar Apr 29 '17 20:04 navarroaxel

+1 also due to termux. I will be using less until then but I am excited for Sass.

jsphstls avatar May 21 '17 18:05 jsphstls

It is possible if some one steps up with patches to our Travis CI build environment or builds its own and uploads binaries for every release.

saper avatar May 27 '17 08:05 saper

@saper : I have no experience in travis, but either I could learn, or for the moment at least provide binaries, if that helps. What binaries do you need (Termux on android uses the LTS version of node)?

@navarroaxel @jsphstls : For now, you can compile node-sass locally / natively on android: http://blog.akehir.com/2017/05/building-node-sass-libsass-python.html

akehir avatar May 28 '17 12:05 akehir

If you look at the node-sass releases page we are publishing binary modules for almost every node binary API version out there (since 0.10). But for example musl binaries are built only for selected node versions, more likely to be found on the platform.

Also please make sure you are using the same compiler and C++ runtime libraries as those used to build node. This helps avoiding some very obscure bugs, mostly crashes.

saper avatar May 28 '17 13:05 saper

Any updates?

laosb avatar Sep 21 '18 01:09 laosb

ARM support would be nice. To be exact: arm32v6, arm32v7, arm64v8

MartinMuzatko avatar Dec 06 '18 09:12 MartinMuzatko

I would like to see node-sass support for android arm64 :). Termux is awesome!

adnfx2 avatar Aug 11 '19 10:08 adnfx2

There is nothing that prevents node-sass from running on Android - if someone contributes a stable binary-building process ARM binaries can be made easily available.

saper avatar Oct 16 '19 12:10 saper

Little late, but alternative you can use dart sass ('sass'), which is supported on termux for Android https://webpack.js.org/loaders/sass-loader/

chetanjk avatar May 22 '20 17:05 chetanjk

Little late, but alternative you can use dart sass ('sass'), which is supported on termux for Android https://webpack.js.org/loaders/sass-loader/

i can confirm! 😀

vlbn avatar Jul 31 '20 16:07 vlbn

This is a great question for stack overflow or the CRA team.

On Tue, 6 Oct 2020, 5:46 am Seanmclem, [email protected] wrote:

but does dart sass integrate with CRA?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sass/node-sass/issues/1960#issuecomment-703818992, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAENSWHYTJVBQ2G3CL43WQ3SJIIBJANCNFSM4DJRP6BA .

xzyfer avatar Oct 05 '20 23:10 xzyfer

Can we get this closed? It took a lot of time (20+ mins) to build node sass, but it did install successfully on termux android. Do note: I installed all the build tools required to build it from source. Btw it would be great if you could send us the precompiled version for android. If you need anything team, say me here, or email if I don't see this by chance [email protected]

sayantan300 avatar Jul 20 '21 03:07 sayantan300

Please add support to Android. Its 2022, and tablet like s8 series, can build very good

linuxmobile avatar Jun 20 '22 02:06 linuxmobile