Open andskaal opened 10 months ago
I'm facing the almost the same problem. I'm trying to compile my .js file into a .exe executable using pkg(I don't know if I should open this issue on the pkg repository, which is archived now). After compiling and executing I get this error too. I installed the @ffmpeg-installer/win32-x64, it is on node_modules, but for some reason it just don't run. I already tried using ffmpeg-static, but didnt work too. If someone asks, I'll send my code. If someone knows how to solve it, I would be really gratefull.
After upgrading my mac from using an Intel chip to now using the M2 chip I'm experiencing issues running my project with the ffmpeg-installer. After trying to delete the node_modules folder and running
yarn install
again - I get the following error trying to run the project:Could not find ffmpeg executable, tried "/Users/andreas/Desktop/backend/functions/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg", "/Users/andreas/Desktop/backend/functions/node_modules/@ffmpeg-installer/ffmpeg/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg" and "/Users/andreas/Desktop/backend/functions/node_modules/@ffmpeg-installer/darwin-x64/ffmpeg"
After doing some investigation I can see that I don't have any "darwin-x64" in my node_modules folder under @ffmpeg-installer. However, I do have a folder called just "ffmpeg" and one called "darwin-arm64". This error occurs trying to set the ffmpeg path like this:
const ffmpegPath = require("@ffmpeg-installer/ffmpeg");
And I have even tried to set the path directly like this:
const ffmpegPath = require("@ffmpeg-installer/darwin-arm64");
and replacing the path like so:
Could someone please point me in the right direction of how to solve this issue?