WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: node.js  (Read 35489 times)

Offline roborob

  • Jr. Member
  • **
  • Posts: 58
Re: node.js
« Reply #15 on: April 29, 2013, 12:58:21 AM »
Well that would explain a few things.  Strange that it just ignored the --overwrite rather than throw an error message (like invalid arg, etc.)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: node.js
« Reply #16 on: May 23, 2013, 05:00:48 PM »
node.js is added to repo.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roborob

  • Jr. Member
  • **
  • Posts: 58
Re: node.js
« Reply #17 on: May 26, 2013, 02:03:16 PM »
Thanks Béla! 
I was able to get everything complied and running, however this will save a ton of time on my next project.

Offline gaspo100

  • Newbie
  • *
  • Posts: 3
Re: node.js
« Reply #18 on: February 26, 2016, 08:00:35 PM »
Hi Bela,

I'm using picore 7 and I don't seem to be able to find nodejs tcz in the repo. Has it been removed?

Thanks.

Online mocore

  • Hero Member
  • *****
  • Posts: 633
  • ~.~
Re: node.js
« Reply #19 on: February 27, 2016, 07:12:41 AM »

You could try to copy /6.x/armv6/tcz/nodejs.tcz

but i would just use the script called 'n'  for
"Simple flavour of node/iojs binary management, no subshells, no profile setup, no convoluted api, just simple."

@ raw.githubusercontent.com/tj/n/master/bin/n *

*you will need to install bash before you can use this script !


Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: node.js
« Reply #20 on: February 28, 2016, 08:19:43 PM »
gaspo100

Did get nodejs working on version 6 piCore, have not tried it on version 7.
I ended up using busybox-httpd to serve web pages.
Mainly because i am behind a Uni firewall so installing npm packages etc was a pain.

I have had success installing/compiling on Raspbian then copying files to PiCore.
If not too many files are needed then it is simple, if files get installed in multiple directories then making a xxx.tcz is better.

Regards
Gavin

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: node.js
« Reply #21 on: February 29, 2016, 12:01:23 AM »
Hi Bela,

I'm using picore 7 and I don't seem to be able to find nodejs tcz in the repo. Has it been removed?

Thanks.

It is available in the armv7 repo and works fine on RPi2. Unfortunately node is detecting CPU type in runtime where armv6 detection is buggy resulting it doesn't work on RPi, so it is not in v6 repo. As soon as I find a patch or upstream fix the issue it will be back.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gaspo100

  • Newbie
  • *
  • Posts: 3
Re: node.js
« Reply #22 on: February 29, 2016, 01:55:33 AM »
It is available in the armv7 repo and works fine on RPi2. Unfortunately node is detecting CPU type in runtime where armv6 detection is buggy resulting it doesn't work on RPi, so it is not in v6 repo. As soon as I find a patch or upstream fix the issue it will be back.

Thanks Bela for the update. I'm running piCore 7 on the older arm-v6 board and needed something to run web services.

As the node is not available for the v6 and I didn't have much time testing node tcz from picore 6, I went C++ route (libevent / evhttp_*) and written a simple http service returning json data.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: node.js
« Reply #23 on: February 29, 2016, 02:34:32 AM »
Actually the LTS 4.2.4 version in the repo. Will test the latest stable 5.x to see is it fixed or not by upstream.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 712
Re: node.js
« Reply #24 on: February 29, 2016, 04:29:11 AM »
Tried the nginx in the 5 repo ??
http://tinycorelinux.net/5.x/armv6/tcz/nginx.tcz

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: node.js
« Reply #25 on: February 29, 2016, 04:45:31 AM »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 712
Re: node.js
« Reply #26 on: February 29, 2016, 04:57:19 AM »
Sorry for miss post this tips.
Tried to help with thinking of different http servers.
Not just busybox, lightttpd, apache.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: node.js
« Reply #27 on: March 01, 2016, 08:09:46 AM »
node.tcz updated to 5.7.0 Now it works fine on both RPi1 and RPi2 boards.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gaspo100

  • Newbie
  • *
  • Posts: 3
Re: node.js
« Reply #28 on: March 01, 2016, 09:10:58 PM »
Thanks for that, I'll give it a try.

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: node.js
« Reply #29 on: March 18, 2016, 08:24:22 AM »
Don't forget to make mmcblk0p2 bigger.
node.tcz is over 6MB, caused me issues with tce-load -wi until  I remembered I just had the standard size partition
Works on Pi 3 too.

Will be interesting to try node for websocket video streaming the camera.
Done it with busybox-httpd on 1B's.