Linux上的运行节点(FFMPEG)产生错误:Spawn EACCES
因此,我正在使用Android(ARM V7A)上的Nodejs前端应用程序来运行FFMPEG,尤其是Fluent-ffmpeg,这里的问题是,当我运行命令时,控制台刚刚说“错误spawn /ffmpeg eacces”,是的,我移动了,我移动了FFMPEG到根分区,我尝试了FFMPEG的文件夹和文件的各种权限,从777开始,因为我的手机已扎根。好吧,我不知道如何使用Superuser权利运行该应用程序。
如何解决率错误?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不建议将sudo与NPM安装一起使用,请按照NPMJS官方文档的步骤进行操作:)
为全局安装做一个目录:
配置NPM使用新目录路径:
打开或创建一个〜/.profile文件,然后添加此行:
命令行上的$路径,更新系统变量:
测试:无需使用sudo即可在全球下载软件包。
来源: https://docs.npmjs.com/getting of - 启动/修复NPM-Permissions
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