Ionic CLI command "ionic upload" throws error about "value is out of bounds:


#1

I am having issues trying to upload my Ionic application onto the ionic View, whenever I try and upload the application I get the following error:

Uploading app....
buffer.js:852
    throw new TypeError('value is out of bounds');
    ^

TypeError: value is out of bounds
    at checkInt (buffer.js:852:11)
    at Buffer.writeUInt16LE (buffer.js:910:5)
    at /usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/archiver/node_modules/zip-stream/lib/headers.js:41:32
    at Array.forEach (native)
    at ZipHeaderCentralFooter.ZipHeader.toBuffer (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/archiver/node_modules/zip-stream/lib/headers.js:28:15)
    at Object.exports.encode (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/archiver/node_modules/zip-stream/lib/headers.js:198:24)
    at ZipStream._writeCentralDirectory (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/archiver/node_modules/zip-stream/lib/zip-stream.js:220:22)
    at ZipStream.finalize (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/archiver/node_modules/zip-stream/lib/zip-stream.js:270:8)
    at Zip.finalize (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/archiver/lib/modules/zip/index.js:39:15)
    at Archiver._onQueueEnd (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/archiver/lib/modules/core/index.js:91:26)

What is causing this issue?

Thanks in advance,
Alex.


#2

Is there no-one that can help me with this?


#3

fix it by running npm update in you global npm_module folder

do it here: ‘node_modules/ionic/node_modules/ionic-app-lib’

which upgrades all the assets without changing the package.json file.

the culprit is archiver which doesn’t support large zip files (until recently) someone at ionic should have upgraded all these dependencies ages ago…very old bug…smells like abandonware

@Ionic could you not just do this and release, its a blocking bug.