这里专门开个帖子用来整理采集遇到的问题

nodejs 报错 Error: Could not find Chrome (ver. 119.0.6045.105). This can occur if either 报错

PHPer 2023-12-08 240 0 0

直接用cmd 命令执行node 运行脚本就不报错

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:294:19

报错,php执行就报上面的错误 ...

立即注册

更新于:2023-12-08 22:08:18
    您需要登录后才可以评论。 立即注册
    相关内容

    小技巧:apache启动错误 AH00072: make_sock: could not bind to address ...

    php报错 Error: Variable 'sql_mode' can't be set to the value of 'M...

    mysql在导入大数据库的时候,报错 Unknown MySQL server host ... ER...

    Uncaught TypeError: $(...).modal is not a function at Function.m...

    解决编译时Could NOT find UV (missing: UV_LIBRARY UV_INCL...

    推荐内容

    怎样使用V2Ray代理和SSTap玩如魔兽世界/绝地求生/LOL台服/战地3/黑色沙漠/彩...

    sstap游戏代理教程 从此玩如魔兽世界/绝地求生/LOL台服/战地3/黑色沙漠/彩虹六...

    BT磁力搜索网站汇总和找不到的资源

    什么是磁力链接,您如何使用?

    Z-Library:全球最大的数字图书馆/含打不开的解决方案/镜像

    使用V2Ray的mKCP协议加速游戏

    v2rayN已停止工作

    【车险课堂】什么是无赔款优待系数ncd,你“造”吗?