Laravel Dusk error: Failed to connect to localhost port 9515: Connection refused

后端 未结 6 964
粉色の甜心
粉色の甜心 2021-02-05 01:16

As the title says, I\'ve go a clean install of Laravel 5.4 and the latest Homestead (1.0.1). However, when I run a simple Dusk test case I get the following error:

6条回答
  •  余生分开走
    2021-02-05 01:44

    It appears your chrome-driver installation is broken.

    You can try to install it from scratch

    CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
    
    wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/
    unzip ~/chromedriver_linux64.zip -d ~/
    rm ~/chromedriver_linux64.zip
    sudo mv -f ~/chromedriver /usr/local/bin/chromedriver
    sudo chown root:root /usr/local/bin/chromedriver
    sudo chmod 0755 /usr/local/bin/chromedriver
    

提交回复
热议问题