nathanpeck / exiftool

A Node.js wrapper around exiftool, providing metadata extraction from numerous audio, video, document, and binary filetypes
MIT License
81 stars 26 forks source link

TypeError: Cannot read property 'on' of undefined #14

Closed celicoo closed 5 years ago

celicoo commented 8 years ago

~ DELETED ~

nathanpeck commented 8 years ago

If exif is undefined that usually means you haven't installed exiftool on your system.

The exif value there is a process which is spawned here: https://github.com/nathanpeck/exiftool/blob/master/lib/exiftool.js#L20

You can debug by attempting to run exiftool -h in your command line. If you see something like:

'bash: exiftool: command not found'

that will confirm that you need to install the exiftool binary.

celicooo commented 8 years ago

That's not the problem. I'm passing 1000 files asynchronous. Maybe this could break exiftool, don't you think?