Open pavelsenko opened 11 years ago
Нет возможности протестировать на Mac OS. Удостовертесь что у вас установлены xlhtml и unoconv.
Any news on this?
I am experiencing this issue as well. A google translation of @dkiyatkin's message above reads:
"There is no way to test on Mac OS. Udostovertes that you have installed and xlhtml unoconv."
So I am assuming that this is a dependencies issue, but I have installed all the dependencies. I am just trying to open a document using the example given in the README:
var office = require('office');
office.parse('source.docx', function(err,data){
console.log(data);
});
I also get the execvp(): No such file or directory
error; same thing when I run the document.js test file with nodeunit.
Can anyone provide clearer instructions on how to resolve this?
Happening for me on OSX 10.8 when trying to parse an xls
file.
Installing xlhtml and unoconv in my machine resolved the issue for me
Установка прошла с предупреждениями, ../deps/libexpat/lib/xmltok.c:471:1: warning: missing field 'isName2' initializer [-Wmissing-field-initializers] };), сообщений об ошибках не было, хотя npm ls показывает, что не все в порядке.
Код: office.parse('/Users/psenko/Documents/testjs.xlsx',function(err,data) { // console.log(data.sheets); return 'testing xls!'; });
при вызове на консоли появляется ошибка execvp(): No such file or directory
Mac OS X 10.7.5
psenko-mac:p psenko$ npm ls npm WARN package.json project@0.0.1 No README.md file found! project@0.0.1 /private/var/www/p ├─┬ hapi@0.7.1 │ ├── async@0.1.22 │ ├─┬ handlebars@1.0.7 │ │ ├─┬ optimist@0.3.5 │ │ │ └── wordwrap@0.0.2 │ │ └── uglify-js@1.2.6 │ ├── hoek@0.0.10 │ ├── joi@0.0.4 │ ├── mac@0.1.0 │ ├── redis@0.8.1 │ ├─┬ request@2.11.4 │ │ ├─┬ form-data@0.0.4 │ │ │ ├── async@0.1.22 │ │ │ └─┬ combined-stream@0.0.3 │ │ │ └── delayed-stream@0.0.5 │ │ └── mime@1.2.7 │ ├── shot@0.0.4 │ └─┬ ws@0.4.22 │ ├── commander@0.6.1 │ ├── options@0.0.3 │ └── tinycolor@0.0.1 ├─┬ mocha@1.1.0 │ ├── commander@0.5.2 │ ├── debug@0.7.0 │ ├── diff@1.0.2 │ ├── growl@1.5.1 │ └─┬ jade@0.20.3 │ └── mkdirp@0.3.4 ├─┬ nconf@0.5.1 │ ├── async@0.1.22 │ ├── ini@1.0.5 │ ├─┬ optimist@0.3.5 │ │ └── wordwrap@0.0.2 │ └── pkginfo@0.2.3 ├─┬ office@0.0.5 extraneous │ ├── temp@0.4.0 │ └─┬ xml2json@0.3.2 │ └── node-expat@2.0.0 ├─┬ optimist@0.3.4 │ └── wordwrap@0.0.2 ├── request@2.9.203 └── should@0.5.1
npm ERR! extraneous: office@0.0.5 /private/var/www/p/node_modules/office npm ERR! not ok code 0