OpenWRT node-red


i get the following error everytime i start node-red in open-wrt of arduino YUN2

getFlows: async function(opts) {

SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/api/index.js:34:12)

please provide a solution

at a guess, the nodejs version is < 7.6.0 (async is not possible in node js version < 7.6.0)

What do you get if you enter node -v in that terminal?

this is what i get
so i need to upgrade my node js version??

Far too old.

Can you upgrade nodejs to at least V10 (V14 would be best, V12 ok too)