|-转 Error: Could not find Chrome 运行js脚本直接执行ok,用php的exec执行脚本就报错
string(1145) "Error: Could not find Chrome (ver. 119.0.6045.105). 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: C:\Windows\system32\config\systemprofile\.cache\puppeteer). For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration. at ChromeLauncher.resolveExecutablePath (D:\www\nodejs\node_global\node_modules\puppeteer\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:286:27) at ChromeLauncher.executablePath (D:\www\nodejs\node_global\node_modules\puppeteer\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:203:25) at ChromeLauncher.computeLaunchArguments (D:\www\nodejs\node_global\node_modules\puppeteer\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ChromeLauncher.js:97:37) at async ChromeLauncher.launch (D:\www\nodejs\node_global\node_modules\puppeteer\node_modules\puppeteer-core\lib\cjs\puppeteer\node\ProductLauncher.js:79:28) at async get (D:\www\wokan\nodejsc\node_gather_common.js:299:25) "
大概意思是找不到chrome浏览器,于是用这个办法 ...
浏览更多内容请先登录。
立即注册
更新于:2023-12-10 11:07:23
相关内容
PHP Error: Maximum execution time of 30 seconds exceeded 解决方案
小技巧:apache启动错误 AH00072: make_sock: could not bind to address ...
php报错 Error: Variable 'sql_mode' can't be set to the value of 'M...
Uncaught TypeError: $(...).modal is not a function at Function.m...
解决编译时Could NOT find UV (missing: UV_LIBRARY UV_INCL...
推荐内容