NodeJS - Wrong version or packet in the repo?
-
Hi!
I have the latest firmware. I run the 'opkg update' command and then 'opkg list node*'.
I want to install NodeJS but in the list of updates I see this:
nodejs - 0.1-1 - Event-driven I/O server-side JavaScript environment based on V8Shouldn't this be: nodejs-0.15.* something???????
What is the problem with that? I installed it before but when I tried to run even the simplest commands, all failed and reported by the parser as exceptions and errors.
Can you please check this out? Maybe some packets are stored wrong in the repository or something....?
Thanks in advance!
-
Hi @George-Delaportas,
The 0.1-1 version number you see is just the package version, when you install it withopkg install nodejs
and check the version:root@Omega-1302:~# node -v v0.10.5
We're working on getting more modern versions up!
-
Thank you for the quick reply, @Lazar Denim.
Still I am unable to run even the simplest vaid JS commands. Is there anything I can do to somehow work with the current version?
-
@George-Delaportas Really? Even with version 0.10.5?
I was able to get code from this thread working: https://community.onion.io/topic/46/simple-node-js-wrapper-samples
Can you try that out and let me know how it goes?
-
Nope... no luck
-
@George-Delaportas That's super odd. What version of the Omega firmware are you running?
Can you post the output when you runsample-blink.js
?
-
I am running version 0.0.6 (b266)
But I saw there is a new firmware. Let me try updating first
-
It works!!!
-
Basically I found another problem as well. This verion of NodeJS does not support lambda (anonymous) functions. So, do not try to call anything or use inline functions. It will crash and burn, LOL.
-
@George-Delaportas glad to hear it worked out! ya, we'll try to get some more modern releases of node running in the coming months!