amazon-kindle-bulk-downloader: error: Could not find Chrome
Tried executing the command: C:\Users[Name].bun\bin\bun.exe install
And got the following error:
[0.00ms] ".env"
bun install v1.2.2 (c1708ea6)
$ husky
E:\Kindle eBooks Download - 2025-02-19\amazon-kindle-bulk-downloader-main\node_modules\husky\bin.js:2
import f, { writeFileSync as w } from 'fs'
^
SyntaxError: Unexpected identifier
at new Script (vm.js:80:7)
at createScript (vm.js:274:10)
at Object.runInThisContext (vm.js:326:10)
at Module._compile (internal/modules/cjs/loader.js:664:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
error: prepare script from "amazon-kindle-bulk-downloader" exited with 1
When I try to run the command: C:\Users[Name].bun\bin\bun.exe start
I get the following error:
$ bun run src/index.ts
257 | if (configVersion) {
258 | throw new Error(`Tried to find the browser at the configured path (${executablePath}) for version ${configVersion}, but no executable was found.`);
259 | }
260 | switch (this.browser) {
261 | case 'chrome':
262 | throw new Error(`Could not find Chrome (ver. ${this.puppeteer.browserVersion}). This can occur if either\n` +
^
error: Could not find Chrome (ver. 133.0.6943.98). This can occur if either
1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
2. your cache path is incorrectly configured (which is: C:\Users\Eric\.cache\puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at resolveExecutablePath (E:\Kindle eBooks Download - 2025-02-19\amazon-kindle-bulk-downloader-main\node_modules\puppeteer-core\lib\esm\puppeteer\node\BrowserLauncher.js:262:27)
at <anonymous> (E:\Kindle eBooks Download - 2025-02-19\amazon-kindle-bulk-downloader-main\node_modules\puppeteer-core\lib\esm\puppeteer\node\ChromeLauncher.js:85:24)
Bun v1.2.2 (Windows x64)
error: script "start" exited with code 1
Lastly when I tried the command: C:\Users[Name].bun\bin\bun.exe start --baseUrl “https://www.amazon.com”
I got the following results:
$ bun run src/index.ts --baseUrl https://www.amazon.com
257 | if (configVersion) {
258 | throw new Error(`Tried to find the browser at the configured path (${executablePath}) for version ${configVersion}, but no executable was found.`);
259 | }
260 | switch (this.browser) {
261 | case 'chrome':
262 | throw new Error(`Could not find Chrome (ver. ${this.puppeteer.browserVersion}). This can occur if either\n` +
^
error: Could not find Chrome (ver. 133.0.6943.98). This can occur if either
1. you did not perform an installation before running the script (e.g. `npx puppeteer browsers install chrome`) or
2. your cache path is incorrectly configured (which is: C:\Users\Eric\.cache\puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at resolveExecutablePath (E:\Kindle eBooks Download - 2025-02-19\amazon-kindle-bulk-downloader-main\node_modules\puppeteer-core\lib\esm\puppeteer\node\BrowserLauncher.js:262:27)
at <anonymous> (E:\Kindle eBooks Download - 2025-02-19\amazon-kindle-bulk-downloader-main\node_modules\puppeteer-core\lib\esm\puppeteer\node\ChromeLauncher.js:85:24)
Bun v1.2.2 (Windows x64)
error: script "start" exited with code 1
Thanks,
Eric
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
Ok, I finally got things working.
I installed on a completely different computer that had a very limited number of items on it, including no Chrome, and everything it working so far.
I’ll update if I find any issues.
Thanks for all the help!
Thanks again,
Eric
I see. My mistake, I missed the Windows label on this Issue.
Thankfully I fixed my issue. For anyone who winds up here, I was able to install puppeteer using the following while in the project root directory and following
bun installcommand.Which I learned from this guide. Hope that is helpful to someone.
Thank you @inlikealion for this script! You’ve saved many a book from being application locked ❤️