Closed dimzeta closed 2 years ago
Hey there,
MPV needs to be installed on your system for this module to work. It's a wrapper around it and it sends commands to the running MPV binary.
Whether you have MPV installed depends on what OS you're using, I'm assuming either Linux or macOS judging from the /bin/sh
output. On either, just open a terminal and enter mpv
and press enter. If it works, awesome you have mpv, if it says something along the lines of command not found
you either don't have MPV installed or it's not in your path.
On Linux, use your distributions package manager. For example apt-get
on Ubuntu as in sudo apt-get install mpv
. Let's just hope it does install a new enough version, if I remember correctly, you need at least 0.7 or something that (which is really old, but on some Linux distros such as Debian you never know).
For macOS brew is a great third party package manager that can be used to install various packages and tools, such as MPV.
Of course you can also just check the installation section on the mpv website, this should get you covered.
I don't think this is a bug as not working when mpv isn't installed is expected behaviour, that's why I will close this issue for now. Please feel free to re-open it if you see fit. And hit me up if you got any questions : )
Cheers!
Bug Description
My new PC does not have MPV installed. That's fine, I don't need it, I want to run my NodeJS project and develop other features. But it crashes because of that.
I tried to embed the require with a try-catch, but it does not work (I am never in the catch):
Do we have a way to verify if MPV is installed?