node-office icon indicating copy to clipboard operation
node-office copied to clipboard

execvp(): No such file or directory

Open pavelsenko opened this issue 12 years ago • 5 comments

Установка прошла с предупреждениями, ../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

pavelsenko avatar Oct 22 '12 22:10 pavelsenko

Нет возможности протестировать на Mac OS. Удостовертесь что у вас установлены xlhtml и unoconv.

dkiyatkin avatar Oct 26 '12 08:10 dkiyatkin

Any news on this?

hookdump avatar Jan 21 '13 20:01 hookdump

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?

NickTomlin avatar Feb 18 '13 19:02 NickTomlin

Happening for me on OSX 10.8 when trying to parse an xls file.

surjikal avatar May 19 '13 08:05 surjikal

Installing xlhtml and unoconv in my machine resolved the issue for me

dijitha avatar Jun 10 '13 09:06 dijitha