5

I've tried to replace the default installed version of node (v 0.10.29) on Raspbian Jessie with node 6 by running these commands:

sudo apt-get remove nodejs nodejs-legacy
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install -y nodejs

The removal and installation of the new node version is successful but when I run

node -v

or

npm -v

I get "Segmentation fault". Does anyone know what the issue might be and how it could be resolved?

I've also tried version 4 and 5 of node but the end result is the same.

Simon
  • 129
  • 6
  • Are you sure that that will install an ARM-based version of Node? What does `file -L $(which node)` return? – robertklep May 05 '16 at 09:19
  • It returns: /usr/bin/node: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=844a4851be257d83af8d9be3fbc35beee5d8e5e4, stripped – Simon May 06 '16 at 04:01
  • I've also tried to install the ARM binaries found at https://nodejs.org/download/release/v6.0.0/node-v6.0.0-linux-armv7l.tar.gz, but to no avail. The result is the same. – Simon May 06 '16 at 04:05
  • I have tried the latter on my RPi2 and it works just fine (although I'm running LibreELEC, not Raspbian). – robertklep May 06 '16 at 08:46
  • same here with raspbian, any progress on that @Simon? I have tried a dozen of different approaches and always had this error :( – NFRiaCowboy Aug 01 '16 at 00:12
  • Don't know if it is 100% related but I am facing a similar problem : https://github.com/nodejs/node/issues/8015 – mitsos1os Aug 08 '16 at 16:07
  • I finally got it to work by using the Node version 6.5.0 ARMv6 binaries found here https://nodejs.org/dist/v6.5.0/node-v6.5.0-linux-armv6l.tar.xz. – Simon Sep 05 '16 at 17:51

0 Answers0