So I'm using a nodejs frontend app on android (Arm v7a) to run ffmpeg, especially fluent-ffmpeg, the problem here is that when I run a command the console just says "error spawn /ffmpeg eacces", yes, I moved ffmpeg to the root partition and I tried all kind of permissions to the folder and the file of ffmpeg, starting from 777 because my phone is rooted. And well, I don't know how to run the app with superuser rights.
How can I solve the eacess error?
It's not recommended to use sudo with npm install, follow the steps from npmjs official docs instead :)
Make a directory for global installations:
Configure npm to use the new directory path:
Open or create a ~/.profile file and add this line:
Back on the command line, update your system variables:
Test: Download a package globally without using sudo.
Source: https://docs.npmjs.com/getting-started/fixing-npm-permissions