openwrt-node-red icon indicating copy to clipboard operation
openwrt-node-red copied to clipboard

Install not working with OpenWrt 19.07.1

Open tiffchros opened this issue 6 years ago • 6 comments

root@OpenWrt:~# opkg install node-red_1.0.3.ipk Collected errors:

  • pkg_init_from_file: Malformed package file node-red_1.0.3.ipk.

Model: TP-Link Archer C2600 Firmware Version: OpenWrt 19.07.1 r10911-c155900f66 / LuCI openwrt-19.07 branch git-20.029.45734-adbbd5c

tiffchros avatar Feb 22 '20 19:02 tiffchros

I'm getting the same error with the latest bump to 1.0.4

root@OpenWRT-P1:/tmp# opkg install /tmp/node-red_1.0.4.ipk Collected errors:

  • pkg_init_from_file: Malformed package file /tmp/node-red_1.0.4.ipk.

Hostname OpenWRT-P1 Model Linksys WRT1900AC Architecture ARMv7 Processor rev 2 (v7l) Firmware Version OpenWrt 19.07.1 r10911-c155900f66 / LuCI openwrt-19.07 branch git-20.029.45734-adbbd5c Kernel Version 4.14.167

robanderson avatar Mar 05 '20 22:03 robanderson

Install fails with the errors as below. The files were downloaded to the Openwrt box.

OpenWrt 19.07.4, r11208-ce6496d796

opkg install node-red_1.2.9.ipk Installing node-red (1.2.9) to root... Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for node-red:
  •  node-npm
    
  • opkg_install_cmd: Cannot install package node-red.

opkg install node-npm_v8.16.1-1_aarch64_cortex-a72.ipk Unknown package 'node-npm'. Collected errors:

  • pkg_hash_fetch_best_installation_candidate: Packages for node-npm found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package node-npm.

Shanteyman avatar Mar 26 '21 12:03 Shanteyman

Yes - the package was built on a previous version of OpenWRT needs some work to redo on 19 and with a decent level of node.js. (eg 12 or 14) Happy to look at a Pull request if anyone interested and has the time.

dceejay avatar Mar 26 '21 14:03 dceejay

Thanks, way beyond my capabilities – I’m into pi zero’s and Arduino pro mini – small is beautiful.

From: Dave Conway-Jones @.*** Sent: 26 March 2021 14:48 To: dceejay/openwrt-node-red @.> Cc: Shanteyman @.>; Comment @.***> Subject: Re: [dceejay/openwrt-node-red] Install not working with OpenWrt 19.07.1 (#3)

Yes - the package was built on OpenWRT 18 needs some work to redo on 19 Happy to look at a Pull request if anyone interested and has the time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/dceejay/openwrt-node-red/issues/3#issuecomment-808277759, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF4D3VWZLYIHVQXHBI6JNWDTFSNDJANCNFSM4KZT7WMQ.

Shanteyman avatar Mar 26 '21 14:03 Shanteyman

Following worked for me: Because my internal storage of my router is too small, I mount a USB stick to /root: mkdir /usr/lib/node_modules mount -o bind /root/node_modules /usr/lib/node_modules/

Node-Red installation: opkg install node-npm reboot (make sure, usb stick is mounted again to /root and /usr/lib/node_modles) npm install -g --unsafe-perm node-red

Start Node-Red:

  • Screen session: node-red

tiffchros avatar Mar 27 '21 15:03 tiffchros

Thanks for above. Unfortunately, lots of space just incompatibility of architectures???

opkg install node-npm_v8.16.1-1_aarch64_cortex-a72.ipk Unknown package 'node-npm'. Collected errors:

  • pkg_hash_fetch_best_installation_candidate: Packages for node-npm found, but incompatible with the architectures configured
  • opkg_install_cmd: Cannot install package node-npm.

Shanteyman avatar Mar 29 '21 12:03 Shanteyman