我在网络包上运行npm run hot
或npm run watch
或npm 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_process
和fs
。
在app.js
上使用import ffmpeg from 'fluent-ffmpeg';
时生成错误
我还设置了FFMPEG_PATH和FFPROBE_PATH,但它无法正常工作。