mirror of
https://github.com/asapach/peerflix-server.git
synced 2026-04-25 06:35:48 +03:00
[GH-ISSUE #142] Giving buffer error while downloading a torrent #334
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leopedro95 on GitHub (May 18, 2018).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/142
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 on GitHub (May 18, 2018):
Looks like you need at least Node v6 now, since v4 is no longer supported.
@leopedro95 commented on GitHub (May 19, 2018):
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