Why don’t you try installing it from source? You can use wget http://nodejs.org/dist/v0.12.2/node-v0.12.2.tar.gz to download it and tar xvf to uncompress it. Then, just follow the instructions on the README file to install. Make sure you have enough space on your SD when doing this process. Let me know if this works.
I am doing this connected to Intel Galileo via ssh with putty from Windows.
After uncompressing it, I'd just have to do this:
and then fails. I don't know if it is because there is no more space, since 1º partition is only 40MB or so. Should I mix both partitions?
make -C out BUILDTYPE=Release V=1
make: Entering directory '/home/root/node-v0.12.7/out'
LD_LIBRARY_PATH=/home/root/node-v0.12.7/out/Release/lib.host:/home/root/node-v0.12.7/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/tools/gyp; mkdir -p /home/root/node-v0.12.7/out/Release/obj.target/v8_snapshot/geni; "/home/root/node-v0.12.7/out/Release/mksnapshot" --log-snapshot-positions --logfile "/home/root/node-v0.12.7/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/home/root/node-v0.12.7/out/Release/obj.target/v8_snapshot/geni/snapshot.cc"
# Fatal error in ../deps/v8/src/ia32/assembler-ia32.cc, line 54
# CHECK(cpu.has_sse2()) failed
==== C stack trace ===============================
/bin/sh: line 1: 261 Aborted "/home/root/node-v0.12.7/out/Release/mksnapshot" --log-snapshot-positions --logfile "/home/root/node-v0.12.7/out/Release/obj.target/v8_snapshot/geni/snapshot.log" "/home/root/node-v0.12.7/out/Release/obj.target/v8_snapshot/geni/snapshot.cc"
deps/v8/tools/gyp/v8_snapshot.target.mk:13: recipe for target '/home/root/node-v0.12.7/out/Release/obj.target/v8_snapshot/geni/snapshot.cc' failed
make: *** [/home/root/node-v0.12.7/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 134
make: Leaving directory '/home/root/node-v0.12.7/out'
Makefile:45: recipe for target 'node' failed
make: *** [node] Error 2
I was able to install the version 11.5 after compiling it. It takes around 7h, and I had to try several versions because of the same error, so is a totally waste of time.
The other ways to update it, may not have worked because I didn't have had set the date and time of galileo, and npm for example uses the date to check whether to update or not. I found this by accident looking for another error I had, so it would be nice to advise this on any "updating nodejs thread".
Anyway, I couldn't use the new versions of linux and IDE, since it provoke some errors on my project. I must say that is great to have access to the SD on Galileo like a normal SD, but it is pointless if linux makes 2 partitions and you only get access to the smallest one, which is 40MB.
I have to say too, that the problem regarding the Ethernet library about saving the remote IP and port, is still present. I notified this in the forum long time ago.
I tried installing how @Intel_Alvarado had suggested.
I got the tar file from wget http://nodejs.org/dist/v0.12.2/node-v0.12.2.tar.gz . After un-tarring, I did:
After about 2-3 hours, the process ended. But I am not sure what exactly happened. Did it install node v0.12.2 for me? When I check the version, I am still getting:
Can you fill me in ?
I was able to get it done on my intel edison. I am opened a discussion laying out all the steps - I am not sure if it will work for you or not.
But here's the link to it: https://communities.intel.com/thread/80570?sr=stream
It took me about 2-3 hours to compile.