Puppeteer: Error: Could not find Chrome (ver. 113.0.5672.63).

0

In my nodejs project hosted on AWS EC2. I am using puppeteer for converting a html content to PDF using puppeteer. Whenever I try to call the function. I am getting the following error: ``error: Could not find Chrome (ver. 113.0.5672.63). This can occur if either

  1. you did not perform an installation before running the script (e.g. npm install) or
  2. your cache path is incorrectly configured (which is: /root/.cache/puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. Error: Could not find Chrome (ver. 113.0.5672.63). This can occur if either
  3. you did not perform an installation before running the script (e.g. npm install) or
  4. your cache path is incorrectly configured (which is: /root/.cache/puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. at ChromeLauncher.resolveExecutablePath (/var/app/current/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:301:27) at ChromeLauncher.executablePath (/var/app/current/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:182:25) at ChromeLauncher.computeLaunchArguments (/var/app/current/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ChromeLauncher.js:98:37) at async ChromeLauncher.launch (/var/app/current/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:83:28)``

I tried different solutions like:

  1. Defining an env variable PUPPETEER_SKIP_DOWNLOAD=true.
  2. upgrading/downgrading node version. Could any please help me out!

My application's production server is getting crashed.

Yusuf
질문됨 6달 전1209회 조회
1개 답변
0

While trying to run local server. I am getting the following error: SyntaxError: Unexpected token '??=' [1] at wrapSafe (internal/modules/cjs/loader.js:1001:16) [1] at Module._compile (internal/modules/cjs/loader.js:1049:27) [1] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) [1] at Module.load (internal/modules/cjs/loader.js:950:32) [1] at Function.Module._load (internal/modules/cjs/loader.js:790:14) [1] at Module.require (internal/modules/cjs/loader.js:974:19) [1] at require (internal/modules/cjs/helpers.js:92:18) [1] at Object.<anonymous> (Y:\Code Symphony\one-construction-apis\node_modules\puppeteer-core\lib\cjs\puppeteer\common\HTTPRequest.js:6:19) [1] at Module._compile (internal/modules/cjs/loader.js:1085:14) [1] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

Yusuf
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠