[GH-ISSUE #142] Giving buffer error while downloading a torrent #334

Closed
opened 2026-03-15 03:02:11 +03:00 by kerem · 2 comments
Owner

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)

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)
kerem 2026-03-15 03:02:11 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@asapach commented on GitHub (May 18, 2018):

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

<!-- gh-comment-id:390151431 --> @asapach commented on GitHub (May 18, 2018): Looks like you need at least Node v6 now, since v4 is no longer supported.
Author
Owner

@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

<!-- gh-comment-id:390372150 --> @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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/peerflix-server#334
No description provided.