Node-sass: Crash on Android

Created on 6 Apr 2017  路  3Comments  路  Source: sass/node-sass

Hello,

I'm trying to run node-sass on Android. npm install seems to work fine but when I run ./node_modules/.bin/node-sass, it crashes with a segfault:

WARNING: linker: /data/data/com.termux/files/home/go/src/github.com/mattermost/platform/webapp/node_modules/node-sass/vendor/android-arm-48/binding.node has text relocations. This is wasting memory and prevents security hardening. Please fix.
Segmentation fault
  • NPM version (npm -v): 3.10.10
  • Node version (node -v): v6.10.1
  • Node Process (node -p process.versions):
{ http_parser: '2.7.0',
  node: '6.10.1',
  v8: '5.1.281.95',
  uv: '1.11.0',
  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"): It crashes.
  • npm node-sass versions (npm ls node-sass): [email protected] (I can also reproduce on master.)
Invalid - Unsupported Platform OS - Other

Most helpful comment

@Rudloff I managed to build node-sass on my android/termux. See http://blog.akehir.com/2017/05/building-node-sass-libsass-python.html for how to do it on your end.

At the moment I'm investigating, if it's possible to build the binary automatically for android and providing it to node-sass (see sass/node-sass#1960)

All 3 comments

Android isn't a supported platform

Maybe you could make that more explicit by adding an os key in package.json then?

@Rudloff I managed to build node-sass on my android/termux. See http://blog.akehir.com/2017/05/building-node-sass-libsass-python.html for how to do it on your end.

At the moment I'm investigating, if it's possible to build the binary automatically for android and providing it to node-sass (see sass/node-sass#1960)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goseesomething picture goseesomething  路  3Comments

mkbctrl picture mkbctrl  路  4Comments

NathanKleekamp picture NathanKleekamp  路  4Comments

alexandrubau picture alexandrubau  路  3Comments

harukaeru picture harukaeru  路  3Comments