Linux上的运行节点(FFMPEG)产生错误:Spawn EACCES

发布于 2025-01-27 12:06:32 字数 227 浏览 3 评论 0原文

因此,我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡紫姑娘! 2025-02-03 12:06:32

不建议将sudo与NPM安装一起使用,请按照NPMJS官方文档的步骤进行操作:)

为全局安装做一个目录:

mkdir〜/.npm-Global

配置NPM使用新目录路径:

npm配置设置前缀'〜/.npm-global'

打开或创建一个〜/.profile文件,然后添加此行:

导出路径=〜/.npm-global/bin:$ path

命令行上的$路径,更新系统变量:

源〜/.profile

测试:无需使用sudo即可在全球下载软件包。

npm install -G打字稿

来源: 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:

mkdir ~/.npm-global

Configure npm to use the new directory path:

npm config set prefix '~/.npm-global'

Open or create a ~/.profile file and add this line:

export PATH=~/.npm-global/bin:$PATH

Back on the command line, update your system variables:

source ~/.profile

Test: Download a package globally without using sudo.

npm install -g typescript

Source: https://docs.npmjs.com/getting-started/fixing-npm-permissions

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文