Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Crash on Android #1944

Closed
Rudloff opened this issue Apr 6, 2017 · 3 comments
Closed

Crash on Android #1944

Rudloff opened this issue Apr 6, 2017 · 3 comments

Comments

@Rudloff
Copy link

Rudloff commented Apr 6, 2017

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): node-sass@4.5.0 (I can also reproduce on master.)
@nschonni
Copy link
Contributor

nschonni commented Apr 6, 2017

Android isn't a supported platform

@nschonni nschonni closed this as completed Apr 6, 2017
@Rudloff
Copy link
Author

Rudloff commented Apr 7, 2017

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

@akehir
Copy link

akehir commented May 29, 2017

@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 #1960)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants