[英]Error: spawn EACCES using node-fluent-ffmpeg
I'm using node-fluent-ffmpeg in my backend but I cant get it to set up correctly. 我在后端使用node-fluent-ffmpeg ,但我无法正确设置它。 I set the PATHS as it instructed:
我按照指示设置了PATHS:
process.env['FFMPEG_PATH'] = '/var/task/node_modules/fluent-ffmpeg/node_modules/ffmpeg';
process.env['FFPROBE_PATH'] = '/var/task/node_modules/fluent-ffmpeg/node_modules/ffprobe';
But now its throwing this error: 但现在它抛出这个错误:
What does this mean? 这是什么意思? I've read that its related to the permissions of the file, but i don't understand what file its talking about.
我已经读过它与文件的权限有关,但我不明白它在说什么文件。
this may help you https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/372 这可能对你有所帮助https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/issues/372
all you have to do is : fs.chmod('777', function...... and it will work 你所要做的就是:fs.chmod('777',函数......它会起作用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.