Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install not working with OpenWrt 19.07.1 #3

Open
tiffchros opened this issue Feb 22, 2020 · 6 comments
Open

Install not working with OpenWrt 19.07.1 #3

tiffchros opened this issue Feb 22, 2020 · 6 comments

Comments

@tiffchros
Copy link

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

@robanderson
Copy link

robanderson commented Mar 5, 2020

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

@Shanteyman
Copy link

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.

@dceejay
Copy link
Owner

dceejay commented Mar 26, 2021

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.

@Shanteyman
Copy link

Shanteyman commented Mar 26, 2021 via email

@tiffchros
Copy link
Author

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

@Shanteyman
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants