SavageCore / node-ffprobe-installer

Platform independent binary installer of FFprobe for node projects
https://www.npmjs.com/package/@ffprobe-installer/ffprobe
73 stars 29 forks source link

Could not find ffprobe executable with nest.js #186

Closed fenfil closed 2 years ago

fenfil commented 3 years ago

Error: Could not find ffprobe executable, tried "/Users/fenfil/Projects/back/dist/apps/api/node_modules/ffprobe-darwin-arm64/ffprobe" and "/Users/fenfil/Projects/back/dist/apps/api/src/node_modules/ffprobe-darwin-arm64/ffprobe"

Actual executable is in "/Users/fenfil/Projects/back/node_modules/ffprobe-darwin-arm64/ffprobe""

sam-albon-li commented 3 years ago

Having a similar issue:

Error: Could not find ffprobe executable, tried "/src/dist/node_modules/@ffprobe-installer/linux-x64/ffprobe" and "/src/dist/src/node_modules/@ffprobe-installer/linux-x64/ffprobe"
{
    "@nestjs/common": "^7.6.15",
    "@ffprobe-installer/ffprobe": "^1.2.0",
}
mcottret commented 2 years ago

There are actually 2 NPM packages & repositories for this project:

A node-ffprobe-installer update seems to have broken the executable's path resolution in some environments, including NestJS' local one. Issues are not enabled on their repo, but maybe @Beekiper can help :) While waiting for a fix, sticking to @ffprobe-installer/ffprobe should prevent this issue.

Be careful as the wrong package might still be registered as a dependency of one of your dependencies (for example get-video-duration updated it from 3.0.2 to 3.1.0).

SavageCore commented 2 years ago

@mcottret Thanks for explaining that.

Closed as not applicable? Feel free to reopen if still an issue.

Beekiper commented 2 years ago

The other package exists because I added arm64 support for M1 Apple Silicon. Sorry but uploading a second one was the only way to deliver a product of ours on time!

I have never used Nest therefore I have no idea how to fix this.