crholliday / iota-prom-exporter

Iota Exporter for Prometheus Metrics
32 stars 5 forks source link

Can't start app.js #17

Closed xFlowe closed 6 years ago

xFlowe commented 6 years ago

npm installed correctly. Error code: `[root@srv01 iota-exporter]# node app.js /node/iota-exporter/app.js:160 app.get('/metrics', async (req, res) => { ^

SyntaxError: Unexpected token ( 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.runMain (module.js:604:10) at run (bootstrap_node.js:383:7) at startup (bootstrap_node.js:149:9) `

crholliday commented 6 years ago

Please make sure you are on nodejs 8.x+

On Fri, Feb 9, 2018 at 10:42 AM, xFlowe notifications@github.com wrote:

npm installed correctly. Error code: `[root@srv01 iota-exporter]# node app.js /node/iota-exporter/app.js:160 app.get('/metrics', async (req, res) => { ^

SyntaxError: Unexpected token ( 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.runMain (module.js:604:10) at run (bootstrap_node.js:383:7) at startup (bootstrap_node.js:149:9) `

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/crholliday/iota-prom-exporter/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/AOgEa5UxUrusbhA-2AdzEczeFlhsx8A-ks5tTHWTgaJpZM4SAMuM .

-- Thanks,

Chris Holliday

xFlowe commented 6 years ago

Thank you m8!