sass / node-sass

:rainbow: Node.js bindings to libsass
https://npmjs.org/package/node-sass
MIT License
8.51k stars 1.32k forks source link

Android support #1960

Open navarroaxel opened 7 years ago

navarroaxel commented 7 years ago

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:

node-sass@4.5.2 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:

jsphstls commented 7 years ago

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

saper commented 7 years ago

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.

akehir commented 7 years ago

@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

saper commented 7 years ago

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.

laosb commented 6 years ago

Any updates?

MartinMuzatko commented 5 years ago

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

adnfx2 commented 5 years ago

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

saper commented 5 years ago

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.

chetanjk commented 4 years ago

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

vlbn commented 4 years ago

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! 😀

xzyfer commented 4 years ago

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

On Tue, 6 Oct 2020, 5:46 am Seanmclem, notifications@github.com 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 .

sayantan300 commented 3 years ago

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 support@rovelstars.com

linuxmobile commented 2 years ago

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