LoginSignup
0
0

More than 5 years have passed since last update.

MojavaでCypressの設定で「This is usually caused by a missing library or dependency」

Last updated at Posted at 2019-04-04

以下の環境で、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じゃなきゃ起動できないのも、一応、筋は通っている気がする。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0