Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

{ [Error: Command failed: ] killed: false, code: 1, signal: null }

Tags:

node.js

npm

excel

Hi am getting an error while importing .xlsx files, pls anybody help out resolve this issue,,

{ [Error: Command failed: ] killed: false, code: 1, signal: null }

var excelParser = require('excel-parser');
        excelParser.worksheets({
          inFile: 'file'
        }, function(err, worksheets){
          if(err) console.error(err);
          console.log(worksheets);
        });
like image 349
John Avatar asked Dec 08 '25 21:12

John


1 Answers

Do you have Python "xlrd 0.9.3" library installed? I recieved the same error as you with one file. But after installing lib, it changed to something more clear:

    File "/usr/lib/python2.7/zipfile.py", line 763, in _RealGetContents
    raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
] killed: false, code: 1, signal: null }

Probably the file is damaged. After resaving with LibreOffice it's opened well. You may also try to change file extension to zip and unpack it, mine throws an error.

like image 53
Leammas Avatar answered Dec 10 '25 11:12

Leammas