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.