NodeJs - Fluent-FFMPEG cannot find FFMPEG
EvilBurrito saved the day on this one. Just wanted to add, make sure use this require:
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegPath);
Try install the package by running
npm i @ffmpeg-installer/ffmpeg
You could perhabs install this node module "ffmpeg-installer/ffmpeg". You can find it here: https://www.npmjs.com/package/@ffmpeg-installer/ffmpeg
It will install ffmpeg on your system and node should be able to use it immediately.
Hope this answer helps you and other people :-)