asapach / peerflix-server

Streaming torrent client for Node.js with web ui.
MIT License
1.31k stars 586 forks source link

Giving buffer error while downloading a torrent #142

Closed leopedro95 closed 6 years ago

leopedro95 commented 6 years ago

I installed the normal nmp, then the nodejs plus comes an error that there is no node in the "env" folder, so I installed nidejs-legacy. I even thought it would work, but when the torrent starts downloading I get the error below: TypeError: Buffer.allocUnsafe is not a function at RandomAccessFile._read (/usr/local/lib/node_modules/peerflix-server/node_mo ules/random-access-file/index.js:67:33) at Request._run (/usr/local/lib/node_modules/peerflix-server/node_modules/rand m-access-storage/index.js:186:40) at Request._unqueue (/usr/local/lib/node_modules/peerflix-server/node_modules/ andom-access-storage/index.js:146:50) at Request.callback (/usr/local/lib/node_modules/peerflix-server/node_modules/ andom-access-storage/index.js:151:8) at oncloseoldfd (/usr/local/lib/node_modules/peerflix-server/node_modules/rand m-access-file/index.js:157:58) at onopen (/usr/local/lib/node_modules/peerflix-server/node_modules/random-acc ss-file/index.js:149:22) at FSReqWrap.oncomplete (fs.js:82:15)

asapach commented 6 years ago

Looks like you need at least Node v6 now, since v4 is no longer supported.

leopedro95 commented 6 years ago

Really! It works correctly, for those who do not know how, aquo has a tutorial: https://www.digitalocean.com/community/tutorials/como-instalar-o-node-js-no-ubuntu-16-04-pt