Skip to content

RangeError: "size" argument must not be larger than 2147483647 #14

@soichih

Description

@soichih

I am trying to archive a big file (around 3G) using npm archiver module. When I do, I run into following error message.

buffer.js:224
    throw err;
    ^

RangeError: "size" argument must not be larger than 2147483647
    at Function.Buffer.alloc (buffer.js:233:3)
    at new Buffer (buffer.js:156:19)
    at Readable.<anonymous> (/home/04040/hayashis/app/node-v8.12.0-linux-x64/lib/node_modules/brainlife/node_modules/archiver-utils/index.js:39:15)
    at emitNone (events.js:111:20)
    at Readable.emit (events.js:208:7)
    at endReadableNT (/home/04040/hayashis/app/node-v8.12.0-linux-x64/lib/node_modules/brainlife/node_modules/readable-stream/lib/_stream_readable.js:1010:12)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)

Is this a limitation imposed on my OS (I am using Linux kernel 3.10.0-693.17.1.el7.x86_64).. or something I need to adjust on the node itself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions