G:\gitcode\vue-env-emergency\node_modules\chromedriver: Command failed.
时间: 2023-09-12 13:13:28 浏览: 192
引用:在CircleCI 2.0中运行Dusk时,需要执行以下步骤:
1. 安装libsqlite3-dev库:sudo apt-get install -y libsqlite3-dev
2. 复制.env.testing文件到.env:cp .env.testing .env
3. 安装Composer依赖:composer install -n --ignore-platform-reqs
4. 安装npm依赖:npm install
5. 运行npm脚本生成生产环境代码:npm run production
6. 运行PHPUnit测试:vendor/bin/phpunit
7. 启动Chrome Driver:./vendor/laravel/dusk/bin/chromedriver-linux(后台运行)
8. 启动Laravel服务器:php artisan serve(后台运行)
9. 运行Laravel Dusk测试:php artisan dusk
引用:在Travis CI中运行Dusk时,需要执行以下步骤:
1. 选择Ubuntu 14.04(Trusty)环境并启用sudo:sudo: required dist: trusty
2. 添加Chrome浏览器的依赖:addons: chrome: stable
3. 复制.env.testing文件到.env:cp .env.testing .env
4. 安装Composer依赖:travis_retry composer install --no-interaction --prefer-dist --no-suggest
5. 启动Chrome浏览器:google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
6. 启动PHP内置服务器:php artisan serve &
7. 运行Dusk测试:php artisan dusk
引用:在CircleCI 1.0中运行Dusk时,需要执行以下步骤:
1. 下载并安装Google Chrome浏览器:curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo dpkg -i google-chrome.deb - sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome - rm google-chrome.deb
2. 启动Chrome Driver:./vendor/laravel/dusk/bin/chromedriver-linux(后台运行)
3. 复制.env.testing文件到.env:cp .env.testing .env
4. 启动Laravel服务器:php artisan serve(后台运行)
5. 运行Dusk测试:php artisan dusk
对于报错"G:\gitcode\vue-env-emergency\node_modules\chromedriver: Command failed.",这可能是由于chromedriver文件路径的问题导致的。请确保该路径是正确的,并且chromedriver已正确安装。你可以尝试重新安装chromedriver或者修改相关的配置文件来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [再读 Laravel 5.5 文档](https://blog.csdn.net/OneGoal/article/details/80334599)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文