pldubouilh / live-torrent

Simple proof-of-concept for a live streaming solution based on webtorrent
MIT License
168 stars 39 forks source link

Error executing live-torrent in ubuntu16.04 #17

Closed sohag1426 closed 5 years ago

sohag1426 commented 5 years ago

root@nginx-rtmp-hls:~# live-torrent -v -u https://live.computer/manifest.m3u8 /usr/local/lib/node_modules/live-torrent/cli.js:62 const makeManifest = async (cb) => { ^

SyntaxError: Unexpected token ( at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:442:10) at startup (node.js:136:18) at node.js:966:3

pldubouilh commented 5 years ago

Yep, the nodejs version shipped by default on xenial is an old version 4. live-torrent requires at least v8, check out either a PPA, or the docs on the nodejs website