fluent-ffmpeg child_process和fs not found

时间:2017-05-01 00:24:35

标签: node.js npm ffmpeg webpack

我在网络包上运行npm run hotnpm run watchnpm run dev或其他任何内容时收到此错误:

These dependencies were not found:

* child_process in ./~/fluent-ffmpeg/lib-cov/utils.js, ./~/fluent-ffmpeg/lib-cov/processor.js and 4 others
* fs in ./~/fluent-ffmpeg/lib-cov/processor.js, ./~/fluent-ffmpeg/lib-cov/capabilities.js and 8 others

我有点困惑,因为如果我运行npm list我可以看到安装了child_processfs

在app.js

上使用import ffmpeg from 'fluent-ffmpeg';时生成错误

我还设置了FFMPEG_PATH和FFPROBE_PATH,但它无法正常工作。

0 个答案:

没有答案