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:
const ffmpegPath = require("@ffmpeg-installer/ffmpeg").path.replace(
'darwin-x64',
'darwin-arm64'
);
Could someone please point me in the right direction of how to solve this issue?
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 installagain - 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?