PHP chrome-php / headless-chromium-php

问题描述

您好,我正在使用the chrome-phpheadless-chromium的PHP软件包,并在Web服务器上安装了该软件包,出现此错误:

Exception: RuntimeException: Cannot read chrome version,make sure you provided the correct chrome executable using: "chrome". Additional info: sh: 1: exec: chrome: not found

我正在使用Mac,并将其放在我的~/.zshrc file中:

alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
export chrome=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome

~/.bash_profile文件:

alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"

在一些与此问题相关的在线解决方案中,它要求我将自己拥有的Chrome可执行文件

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)