title: NodeJs: Exiftool can not be spawned in AWS Lambda environment
body: <p>Exiftool can not be spawned in aws lambda environment, getting below error:</p>
  
  <pre><code>ERROR   { Error: spawn /var/task/node_modules/dist-exiftool/node_modules/exiftool.pl/vendor/exiftool ENOENT
  at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
  at onErrorNT (internal/child_process.js:415:16)
  at process._tickCallback (internal/process/next_tick.js:63:19)
  errno: 'ENOENT',
  code: 'ENOENT',
    syscall:
     'spawn /var/task/node_modules/dist-exiftool/node_modules/exiftool.pl/vendor/exiftool',
    path:
     '/var/task/node_modules/dist-exiftool/node_modules/exiftool.pl/vendor/exiftool',
    spawnargs:
     [ '-echo2', '1574158488325', '-stay_open', 'True', '-@', '-' ] }
  </code></pre>
  
  <p>A function is working properly with NodeJs version 8.10 on AWS Lamda but I want to upgrade this function to NodeJs 10.X version.
  I failed to run a function on NodeJs 10.X. I am always getting an error on followings line.</p>
  
  <pre><code>const ep = new exiftool.ExiftoolProcess(exiftoolBin);
  </code></pre>
  
  <p>My function:</p>
  
  <pre><code>const exiftool =  require('node-exiftool')
  const exiftoolBin = require('dist-exiftool')
  
  const fs = require('fs')
  const path = require('path')
  
  const ep = new exiftool.ExiftoolProcess(exiftoolBin)
  
  const PHOTO_PATH = path.join(__dirname, 'photo.jpg')
  const rs = fs.createReadStream(PHOTO_PATH)
  
  ep.open()
      .then(() =&gt; ep.readMetadata(rs, ['-File:all']))
      .then((res) =&gt; {
          console.log(res)
      })
      .then(() =&gt; ep.close(), () =&gt; ep.close())
      .catch(console.error) 
  </code></pre>
  
  <p>Please help me to resolve this issue.</p>
  
  <p>Thank you.</p>