I am able to get chrome-capture-for-channels-win-x64.exe working on a standalone windows machine, but when I try it from a command prompt, puppeteer throws an error:
C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels>node main.js
[2025/01/21 16:00:44.134] Chrome Capture server listening on port 5589
C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\LifecycleWatcher.js:103
this.#terminationDeferred.resolve(new Error('Navigating frame was detached'));
^
Error: Navigating frame was detached
at #onFrameDetached (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\LifecycleWatcher.js:103:47)
at C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\third_party\mitt\mitt.js:62:7
at Array.map (<anonymous>)
at Object.emit (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\third_party\mitt\mitt.js:61:20)
at CdpFrame.emit (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\common\EventEmitter.js:83:23)
at #removeFramesRecursively (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\FrameManager.js:451:15)
at #onClientDisconnect (C:\Users\jay\Downloads\cc4c\chrome-capture-for-channels\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\FrameManager.js:94:42)
Node.js v23.6.1
I noticed that when I ran npm install, it reported all kinds of vulnerabilities, and wanted me to run npm audit fix and npm audit fix --force. One of the fixes was identified as a breaking change. I tried uninstalling and then reinstalling without using the -fix option, but the puppeteer error persists.
Does it work for you? If so, what version of node and npm are you using?