NodeJS version 6+ ?
-
@Arek-Z Hello, can you please provide a bit more info on how this Makefile works? I am trying to use it with Node.js 8.11.1. I downloaded the source code from https://nodejs.org/dist/v8.11.1/node-v8.11.1.tar.gz and extracted it on my Omega2+. I then installed python and gcc. I put your Makefile (with the
PKG_VERSION
changed tov8.11.1
) in the root directory, ran./configure
, and thenmake
, but I got an error sayingpackage.mk: No such file or directory
. Would you be able to help me get this working?
-
Forget totally about compiling it on the omega. You have to cross compile it using this repo: https://github.com/OnionIoT/source.
-
Hi @Arek-Z , i try to compile nodejs 8.9.4 using cross compile and editing the Makefile from /source/packages/feeds/onion/nodejs,
when i try the command from /source: make -j1 V=s /package/nodejs i have an error:
{standard input}: Assembler messages: {standard input}:125: Error: opcode not supported on this processor: mips32r2 (mips32r2) `ldc1 $f0,24($fp)'
my file ".config" in /source is the some from OnionIoT git source.
What i'm doing wrong?
-
Hi @Arek-Z can you share you bin of node v 8.9.4 ? Or help me and @Jorge-Garcia how to cross compile the node v8.x with docker from this repo: https://github.com/OnionIoT/source
thank you very much.
-
@Jorge-Garcia Hi i have same error when i create config with: ./configure --without-snapshot --with-mips-float-abi=soft
if i create config without the argument --with-mips-float-abi=soft build node successful but not work correct for float operation
(I know the config create hardware float for cpu but cpu only have software float... and this is the problem for float operation)example.js:
var a = 0.1;
var b = 0.4;
var c = a + b;
console.log(c);
and run: ./node example.jsI have error:
Fatal error in , line 0
unreachable code
node v4.3.1 on omega run this example.js correct.any idea how to fix the problem ? thx sorry for my English.
-
I had someone make me 2 versions of node. v8 and v9. I am using v8 successfully for a while now. I also had upgraded the npm.
https://www.dropbox.com/s/skm0d51ou4yqnqt/node_v8.11.3-2_mipsel_24kc.ipk?dl=0
https://www.dropbox.com/s/nuyvqo3rtkxhab2/node-npm_v8.11.3-2_mipsel_24kc.ipk?dl=0
Let me know how you like it, install it using opkg.
-
@brolly759 I will definitely try, thank you for sharing.
Edit: @brolly759 your node works fine. I have question you node v8.11.3 use 13.7MB disk space, my compiled node v8.10.0 is compile with this configure args: --with-intl=none --without-snapshot --with-mips-float-abi=soft and use 25.4MB of disk space. You can share you configure for build node, my node is two times bigger than your's ...?
@Jorge-Garcia I have also solved the problem of the error message and now I am able to compile the node v8 which works correctly, I still have to do some tests and write here a detailed procedure for compiling the node
-
Thank you very much for the contribution @brolly759 and @MFsoft , I'll try it and I'll tell you how it was, I needed this version to install the latest version of node-red and some google-home repositories.
@MFsoft , I look forward to the detailed procedure to compile my own version
-
Has anyone come across this error after installing this version of npm?
Error: Cannot find module 'internal/util/types'
I cannot install any packages via npm because of this.
Thanks!
-
@brolly759 +1 Thanks for that! Works on my new Omega2Pro where the onion-provided nodejs package would not even support Classes. I used wget on your two files (minus the ?dl=0) to a flash drive, then ran opkg from there. Installed space appears to be about 29MB. Oh, I also had to use opkg remove on both npm and nodejs first.
-
If you're on the Omega2 Pro (running OpenWRT 18.06 based firmware), then you can run:
opkg update opkg install node
to get Node v8.10.0
To download npm, run
opkg update opkg install node-npm
OpenWRT 18.06 based firmware is coming to the Omega2 & Omega2+ very soon!
EDIT: OpenWRT 18.06 based firmware for the Omega2 & Omega2+ has been released!
- See the OpenWRT 18 blog post for more details on the new release
- See our updated Installing and Using NodeJS documentation article
-
Is there a solution for OpenWRT 18.06, and onoff-node?
Version: Ω-ware: 0.3.2 b218
After upgrading this no longer works.
opkg install onoff-node Unknown package 'onoff-node'. Collected errors: * opkg_install_cmd: Cannot install package onoff-node.
I figured it out. onoff-node is gone now that npm onoff is available. Here are steps I went through to get it working. OpenWRT 18.06 & Nodejs installing onoff node module [ solved ]