node-office
node-office copied to clipboard
execvp(): No such file or directory
Установка прошла с предупреждениями, ../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 [email protected] No README.md file found! [email protected] /private/var/www/p ├─┬ [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ ├─┬ [email protected] │ │ │ ├── [email protected] │ │ │ └─┬ [email protected] │ │ │ └── [email protected] │ │ └── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ ├── [email protected] │ ├── [email protected] │ ├─┬ [email protected] │ │ └── [email protected] │ └── [email protected] ├─┬ [email protected] extraneous │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected] ├─┬ [email protected] │ └── [email protected] ├── [email protected] └── [email protected]
npm ERR! extraneous: [email protected] /private/var/www/p/node_modules/office npm ERR! not ok code 0
Нет возможности протестировать на 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