ubuntu 安装 Puppeteer 配合laravel采集

Browser was not found at the configured executablePath (/root/.cache/puppeteer/chrome

PHPer 2026-06-15 1 0 0

Browser was not found at the configured executablePath (/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome) 一种情况是执行路径的文件不存在,还有就是执行路径的文件不限制执行

ls ~/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome

/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome

说明执行文件存在,在laravel的php的测试文件里用

dd(

is_executable('/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome')

); ,运行的报错是

is_executable(): open_basedir restriction in effect. File(/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome) is not within the allowed path(s): (/www/wwwroot/zimu/:/tmp/) 说明不允许执行

[2026-06-15 16:21:52] production.ERROR: Douban poster parse failed {"output":"Error: Browser was not found at the configured executablePath (/root/.cache/puppeteer/chrome/linux-149.0.7827.22/chrome-linux64/chrome)

at ChromeLauncher.launch (file:///www/wwwroot/zimu/node_modules/puppeteer-core/lib/puppeteer/node/BrowserLauncher.js:60:19)...

立即注册

更新于:2026-06-15 16:33:59
    您需要登录后才可以评论。 立即注册
    相关内容

    Chrome浏览器:The request client is not a secure context and the reso...

    Xampp安装后apache启动失败报错 www.example.com:443:0 server certificate...

    提示-bash: ffmpeg: command not found ffmpeg 安装和命令详解

    other System

    E: The repository 'https://download.opensuse.org/....:/release/Debia...

    Bootstrap模板下载bootstrap template free

    精选Bootstrap模板

    推荐内容

    真枪实弹,假戏真做,12部具有“实干精神”的电影!

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

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

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

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

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

    使用V2Ray的mKCP协议加速游戏

    v2rayN已停止工作