Closed fenfil closed 2 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",
}
There are actually 2 NPM packages & repositories for this project:
@ffprobe-installer/ffprobe
which references this reponode-ffprobe-installer
which references a newer forkA 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).
@mcottret Thanks for explaining that.
Closed as not applicable? Feel free to reopen if still an issue.
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.
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""