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

A "spawn ENOENT" error

Open exolution opened this issue 11 years ago • 11 comments

my code is

var office=require('office'),fs=require('fs');
console.log(fs.statSync('./test.doc'));// no error
office.parse('test.doc',function(err,data){}); 

follows is error text:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:980:11)
    at Process.ChildProcess._handle.onexit (child_process.js:771:34)

the file "test.doc" is -rwxr-xr-x


thanks~

exolution avatar Feb 01 '14 13:02 exolution

I'm having the exact same issue running node v0.10.24.

bbaaxx avatar Feb 05 '14 21:02 bbaaxx

Me too, on Windows 7 x64

pavel-mxsf avatar Feb 19 '14 12:02 pavel-mxsf

Me too on OSX 10.7.5!

palin27 avatar Mar 17 '14 09:03 palin27

Me too. Looks like t doesn't fixed?!

m4a1fox avatar Apr 08 '14 09:04 m4a1fox

I guess unoconv installation is a mandatory requirement in fact fails when child_process call unoconv.

palin27 avatar Apr 10 '14 08:04 palin27

It seems that unoconv is not suitable for Windows - Is that true?

chenop avatar Apr 22 '14 20:04 chenop

Don't know that yet. But I'll try to install this module for 2 day. Not luck yet. But in my other notebook Mac - All starts work nice. P.S. Thanks man for this module.

m4a1fox avatar Apr 25 '14 06:04 m4a1fox

Any update on this one? At Windows 7 64bit, got:

events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:988:11) at Process._handle.onexit (child_process.js:779:34)

chenop avatar Apr 26 '14 21:04 chenop

I dev this module for linux only... This module does not support Windows. it will happen in the future... maybe.

dkiyatkin avatar Apr 26 '14 22:04 dkiyatkin

Thanks man. You save my time.

m4a1fox avatar Apr 28 '14 06:04 m4a1fox

I'm getting the same issue in OS X.

thehack avatar Jul 23 '14 17:07 thehack