You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Git Bash执行chrome.exe提示command not found问题求助

Git Bash启动Chrome报错的解决方法
  • Git Bash默认不会将当前目录(.)纳入可执行命令的搜索路径,所以即便当前文件夹里有chrome.exe,直接输入chrome.exe http://localhost:8000也会提示找不到命令。解决方法是用相对路径调用:
    ./chrome.exe http://localhost:8000
    
  • 要是想不用加./就能直接运行chrome命令,可以把Chrome的安装目录添加到系统环境变量PATH中:
    1. 找到Chrome的安装路径,通常为C:\Program Files\Google\Chrome\Application
    2. 打开Windows设置 → 系统 → 关于 → 高级系统设置 → 环境变量
    3. 在系统变量的Path条目里添加上述路径
    4. 重启Git Bash后,直接输入chrome.exe http://localhost:8000即可启动浏览器

内容的提问来源于stack exchange,提问作者PhilibertEtienne

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 06:47:38