以下の環境で、yarn run cypress open
するとエラーが出て、めっちゃ悩んだ
os/soft | version |
---|---|
darwin | 18.5.0 |
Cypress | 3.2.0 |
エラーの内容
Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.io/required-dependencies
If you are using Docker, we provide containers with all required dependencies installed.
----------
/Users/hoge/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/MacOS/Cypress: bad option: --smoke-test
/Users/hoge/Library/Caches/Cypress/3.2.0/Cypress.app/Contents/MacOS/Cypress: bad option: --ping=452
----------
Platform: darwin (18.5.0)
Cypress Version: 3.2.0
error Command failed with exit code 1.
まぁ、結論からかくと、sudo
をつければ良いだけ。
sudo yarn run cypress open
ネットで調べると、/Users/{アカウント}/Library/Caches/Cypress
を削除して、再インストールとか書いてあるけど、結局、sudo
だった。
よくよく考え見ると、 yarn run cypress install
で、Cypressというアプリをインストールして、それを起動したところで、failしているのだから、sudo
じゃなきゃ起動できないのも、一応、筋は通っている気がする。