eugeneware / eugeneware/ffprobe

Spawn error after packaging

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
102
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Hi,

Just after compilation with electron-builder,
I get this error in my app from ffprobe

```
Uncaught Error: spawn C:\Users\Anymord\AppData\Local\Temp\nsuFBDD.tmp\app\resources\app.asar\node_modules\ffprobe-static\bin\win32\x64\ffprobe.exe ENOENT
at exports._errnoException (util.js:1022)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193)
at onErrorNT (internal/child_process.js:359)
at _combinedTickCallback (internal/process/next_tick.js:74)
at process._tickCallback (internal/process/next_tick.js:98)
```
Here is my setup :
From my package.json

```
"dependencies": {
...
"ffprobe": "^1.1.0",
"ffprobe-static": "^2.0.0",
...
}
```

In a script called by index.html
```
const ffprobe = require('ffprobe')
const ffprobeStatic = require('ffprobe-static')
```

and the call
```
ffprobe(item.filePath, {
path: ffprobeStatic.path
}, function (err, info) {
```

What did I missed ?

Thanks for your support !

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.