New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module #3
Comments
Hmm, not sure why it's trying to require that js file at all, but I noticed that the path should be directly to ffmpeg runtime, not the directory. Try v0.0.10 (latest on npm) and let me know how it goes. |
@konsumer Hi, i just updated to v0.0.10. path.js:488
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at Object.posix.join (path.js:488:13)
at Object.<anonymous> (/Users/pascal/Desktop/easy-ffmpeg/node_modules/easy-ffmpeg/index.js:4:14)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/pascal/Desktop/easy-ffmpeg/ffmpeg.js:1:76)
at Module._compile (module.js:460:26) I think the problem lies in the fact that the variable arch isn't declared yet. var p = path.join(__dirname, 'ffmpeg', process.platform, arch, 'ffmpeg') Shouldn't the following line be moved above the path.join? var arch = process.arch If i update the code and rerun, the error is gone, but no encoding is done. |
Argh, that was a stupid error. Forgot to test. Updated to 0.0.11. |
Okay, |
I just installed the library via npm, and that went ok.
Now i try to run following code
and when i run node script.js, I get following error.
Shouldn't the path be ffmpeg without the js?
Regards
Pascal
The text was updated successfully, but these errors were encountered: