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

右键启动LiveServer时提示找不到Google Chrome问题求助

解决LiveServer无法启动Google Chrome的问题

具体解决步骤

  • 给Chrome添加系统环境变量
    Windows里LiveServer找不到google-chrome命令,多半是Chrome的安装路径没加入系统Path:

    1. 找到Chrome安装目录,一般是C:\Program Files\Google\Chrome\Application或C:\Program Files (x86)\Google\Chrome\Application
    2. 右键「此电脑」→「属性」→「高级系统设置」→「环境变量」
    3. 在系统变量的Path中添加上述路径,保存后重启VS Code
  • 直接在VS Code里指定Chrome路径
    不想改环境变量的话,直接给LiveServer指定Chrome的exe文件:

    1. 打开VS Code,按Ctrl+,打开设置
    2. 搜索「Live Server: Custom Browser」,选择「Custom」选项
    3. 在「Live Server: Custom Browser Path」里填入Chrome的完整路径,比如C:\Program Files\Google\Chrome\Application\chrome.exe
    4. 保存设置后重新启动LiveServer
  • 先验证Chrome的命令是否能正常调用
    按Win+R输入cmd打开命令提示符,输入chrome或者google-chrome,如果能启动Chrome,说明环境变量没问题;启动不了就用上面两种方法解决

你遇到的错误提示:
'Windows cannot find 'google-chrome'. Make sure you typed the name correctly, and then try again'

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.16 05:25:37