It does not appear that the TTN installer currently has support for mlinux 5.0.0. This would need to be provided by TTN.
Also the mlinux-factory-image should be used as it has support for nodejs.
installer.sh: line 822: node: command not found
The device should be downgraded to a version supported by TTN or the TTN installer not used until it is supported.
Otherwise you could install the mlinux-factory-image 5.0.0 or AEP 5.0.0 and use the already installed Semtech packet forwarder to connect to TTN.
http://www.multitech.net/developer/downloads/
https://www.multitech.net/developer/software/mlinux/using-mlinux/flashing-mlinux-firmware-for-conduit/
https://www.multitech.net/developer/software/lora/conduit-mlinux-convert-to-basic-packet-forwarder/
http://www.multitech.net/developer/software/lora/aep-lora-packet-forwarder/
AEP would be easiest to configure, there is a dropdown and region selector.
Replace the server information in the configurations above with the TTN info according to your region.
https://github.com/TheThingsNetwork/gateway-conf
“server_address”: “router.as1.thethings.network”,
“serv_port_up”: 1700,
“serv_port_down”: 1700,