Skip to content

Fails at runtime with @ffmpeg-installer/ffmpeg package #376

@styfle

Description

@styfle

Steps to reproduce

yarn init -y
yarn add @ffmpeg-installer/ffmpeg @zeit/ncc@0.18.3 
echo "let {path} = require('@ffmpeg-installer/ffmpeg'); console.log(path);" > index.js
./node_modules/.bin/ncc build index.js
node dist

Error Message

/Users/styfle/Code/foo/ffmpeg-installer-example/dist/index.js:85
    throw 'Could not find ffmpeg executable, tried "' + npm3Binary + '" and "' + npm2Binary + '"';
    ^
Could not find ffmpeg executable, tried "/Users/styfle/Code/ffmpeg-installer-example/dist/darwin-x64/ffmpeg" and "/Users/styfle/Code/ffmpeg-installer-example/dist/ffmpeg/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg"

A similar message during deployment:

image

Notes

This package uses __dirname in the require() so it looks like it should work.

https://github.com/kribblo/node-ffmpeg-installer/blob/bbe5c71fce98e0450e919ba985c6560b79225039/index.js#L37

Metadata

Metadata

Assignees

Labels

package issuepriorityImportant issue or pull request to fast-track

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions