When using the --ci or --svg options on WIndows machine, I am getting the following error:
Error: Could not find Chrome (ver. 123.0.6312.58). 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\vmihalkov1\.cache\puppeteer).
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
at ChromeLauncher.resolveExecutablePath (C:\Users\vmihalkov1\AppData\Roaming\npm\node_modules\inkdrop-visualizer\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:285:27)
at ChromeLauncher.executablePath (C:\Users\vmihalkov1\AppData\Roaming\npm\node_modules\inkdrop-visualizer\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:196:25)
at ChromeLauncher.computeLaunchArguments (C:\Users\vmihalkov1\AppData\Roaming\npm\node_modules\inkdrop-visualizer\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:89:37)
at async ChromeLauncher.launch (C:\Users\vmihalkov1\AppData\Roaming\npm\node_modules\inkdrop-visualizer\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:70:28)
I tried installing Chrome with the example command npx puppeteer browsers install chrome and it installed the latest version 149.0.7827.22. I then tried again running inkdrop plan.out --ci and got the same error. I also installed the exact Chrome version from the error 123.0.6312.58, but still the same error.
I want to implement this in a DevOps pipeline, but first I must be able to run it locally with --ci and --svg because I don't need a browser to open and just need to get the diagram in svg format.
When using the
--cior--svgoptions on WIndows machine, I am getting the following error:I tried installing Chrome with the example command
npx puppeteer browsers install chromeand it installed the latest version 149.0.7827.22. I then tried again runninginkdrop plan.out --ciand got the same error. I also installed the exact Chrome version from the error 123.0.6312.58, but still the same error.I want to implement this in a DevOps pipeline, but first I must be able to run it locally with
--ciand--svgbecause I don't need a browser to open and just need to get the diagram in svg format.