错误:签名无效:0x4acf92ad(位置:0x29)

时间:2013-06-06 04:57:40

标签: javascript excel node.js npm

我试图将excel转换为节点中的json。我发现了一些可能有用的模块。

我尝试了npm excel https://npmjs.org/package/excel

我的app.js

var express = require('express');  //Call Express module
var app = express();  //Create server
var parseXlsx = require('excel');

        parseXlsx('Sheet.xlsx', function(err, data) {
            console.log('sdf');
            if(err) throw err;
            // data is an array of arrays
            console.log(data);
        });

app.listen(3003);

但我收到错误

/home/local/user/Desktop/sample/node_modules/excel/node_modules/node-promise/promise.js:199

          throw error;
                ^
Error: invalid signature: 0x4acf92ad (at position: 0x29)
    at /home/local/user/Desktop/sample/node_modules/excel/node_modules/unzip/lib/parse.js:56:13
    at /home/local/user/Desktop/sample/node_modules/excel/node_modules/unzip/node_modules/pullstream/pullstream.js:101:11
    at process._tickCallback (node.js:415:13)

如何解决此问题?

0 个答案:

没有答案