You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:6984) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: spawn .exe ENOENT
(node:6984) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit
code.
Either use async/await (ES7/Typescript) inside of a try/catch block, they're using async await in their unit tests for the exec module try { const jsonDump = await bento4.mp4dump.exec(inputVideo, args) catch (error) { // handle error }
Or follow up your exec call with .then and .catch bento4.mp4dump.exec(inputVideo, args).then((data) => { // use data }).catch((error) => { // handle error )
(node:6984) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: spawn .exe ENOENT
(node:6984) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit
code.
const jsonDump = bento4.mp4dump.exec(inputVideo, args)
Can you add a proper sample code to run commands .
The text was updated successfully, but these errors were encountered: