aksakalli / gtop

System monitoring dashboard for terminal
MIT License
9.74k stars 326 forks source link

get SyntaxError: Unexpected token #81

Closed diggde closed 6 years ago

diggde commented 6 years ago

Environment

apt info: nodejs-legacy is already the newest version. npm is already the newest version.

Description

Hi,

i get a warning during installation: npm WARN marked-terminal@1.7.0 requires a peer of marked@^0.3.3 but none was installed.

and i get a syntax error after installing gtop:

/usr/lib/node_modules/gtop/lib/monitor/cpu.js:8 si.currentLoad(data => { ^ SyntaxError: Unexpected token > at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/usr/lib/node_modules/gtop/lib/monitor/index.js:2:8) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32)

Can anybody help?

aksakalli commented 6 years ago

your node version is not compatible: