Closed davidecampello closed 11 months ago
I'm using osx and trying this on an angular electron app using this starter and simply calling youtube-dl-exec default code pressing a button but I'm having this error
{ "stderr": "", "stdout": "", "errno": -2, "code": "ENOENT", "syscall": "spawn /Users/username/my-youtube-dl/angular-electron/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/bin/yt-dlp.exe", "path": "/Users/username/my-youtube-dl/angular-electron/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/bin/yt-dlp.exe", "spawnargs": [ "https://www.youtube.com/watch?v=6xKWiCMKKJg", "--dump-single-json", "--no-check-certificates", "--no-warnings", "--prefer-free-formats", "--add-header", "referer:youtube.com", "--add-header", "user-agent:googlebot" ], "originalMessage": "spawn /Users/username/my-youtube-dl/angular-electron/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/bin/yt-dlp.exe ENOENT", "shortMessage": "Command failed with ENOENT: /Users/username/my-youtube-dl/angular-electron/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/bin/yt-dlp.exe https://www.youtube.com/watch?v=6xKWiCMKKJg --dump-single-json --no-check-certificates --no-warnings --prefer-free-formats --add-header referer:youtube.com --add-header user-agent:googlebot\nspawn /Users/username/my-youtube-dl/angular-electron/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/bin/yt-dlp.exe ENOENT", "command": "/Users/username/my-youtube-dl/angular-electron/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/bin/yt-dlp.exe https://www.youtube.com/watch?v=6xKWiCMKKJg --dump-single-json --no-check-certificates --no-warnings --prefer-free-formats --add-header referer:youtube.com --add-header user-agent:googlebot", "escapedCommand": "\"/Users/username/my-youtube-dl/angular-electron/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/bin/yt-dlp.exe\" \"https://www.youtube.com/watch?v=6xKWiCMKKJg\" --dump-single-json --no-check-certificates --no-warnings --prefer-free-formats --add-header \"referer:youtube.com\" --add-header \"user-agent:googlebot\"", "failed": true, "timedOut": false, "isCanceled": false, "killed": false }
Do you know why? If i run the command in the terminal it work normally.
Thank you!
Hello, can you verify if the file pointed by path exists?
path
I didn't use this in an electron workflow, so I can't help about that too much, but it seems the error trace is pointing you to the issue 🙂
I'm using osx and trying this on an angular electron app using this starter and simply calling youtube-dl-exec default code pressing a button but I'm having this error
Do you know why? If i run the command in the terminal it work normally.
Thank you!