WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: node.js  (Read 171 times)

Offline richardh

  • WikiUser
  • *
  • Posts: 17
node.js
« on: October 26, 2018, 05:50:06 AM »
I just wanted to check whether there is any likelihood of node.js being updated to a more recent version for picore?

As far as  I can tell we have v6.5 available for picore but v8.12/v11.0 seem to be current.

Many thanks, R.

Offline vladosam

  • WikiUser
  • *
  • Posts: 10
Re: node.js
« Reply #1 on: October 26, 2018, 06:57:40 AM »
You can try to compile node.js. Something like this:

tce-load -wo make gcc compiletc openssl-dev squashfs-tools git python python-dev
tce-load -i make gcc compiletc openssl-dev squashfs-tools git python python-dev

mkdir -p /tmp/nodejs/usr/local

cd /tmp
wget http://nodejs.org/dist/v8.11.3/node-v8.11.3.tar.gz

tar -xvf node-v8.11.3.tar.gz

cd node-v8.11.3

./configure --without-snapshot --prefix=/tmp/nodejs/usr/local

mksquashfs /tmp/nodejs/usr/local /tmp/nodejs_8_11_3.tcz

cp /tmp/nodejs_8_11_3.tcz /mnt/mmcblk0p2/tce/optional/

tce-load -i nodejs_8_11_3.tcz

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5964
Re: node.js
« Reply #2 on: October 26, 2018, 07:06:09 AM »
Hi vladosam
You can try to compile node.js. Something like this:

tce-load -wo make gcc compiletc openssl-dev squashfs-tools git python python-dev
tce-load -i make gcc compiletc openssl-dev squashfs-tools git python python-dev ...
Both  make  and  gcc  are dependencies of  compiletc  and do not need to be loaded separately.

Offline richardh

  • WikiUser
  • *
  • Posts: 17
Re: node.js
« Reply #3 on: October 26, 2018, 08:01:58 AM »
Thanks, I may try that although I assume that node is a large build and I am not sure how well my 1st generation pi will cope...

Offline vladosam

  • WikiUser
  • *
  • Posts: 10
Re: node.js
« Reply #4 on: October 26, 2018, 08:56:20 AM »
Thanks Rich i will update my wiki, how to, read me first all realted with piCore file. :)

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 5964
Re: node.js
« Reply #5 on: October 26, 2018, 09:20:22 AM »
Hi vladosam
The  .tree  file lists the entire dependency tree:
http://tinycorelinux.net/9.x/armv6/tcz/compiletc.tcz.tree