LoginSignup
0
2

More than 1 year has passed since last update.

cypress 設定時のProxyエラーについて

Posted at

エラー内容

Does your workplace require a proxy to be used to access the Internet? If so, you must configure the HTTP_PROXY environment variable before downloading Cypress. Read more: https://on.cypress.io/proxy-configuration

うーむよくわからん

翻訳かけると

あなたの職場では、インターネットにアクセスするためにプロキシを使用する必要がありますか?その場合は、サイプレスをダウンロードする前にHTTP_PROXY環境変数を構成する必要があります。続きを読む:https://on.cypress.io/proxy-configuration

だめだったパターン

ここを見て
スクリーンショット 2021-11-17 18.08.15.png

こう記載されていたのでそのまま対応

すると

スクリーンショット 2021-11-17 18.08.49.png

一生動かん

そういう時は再度
export HTTP_PROXY=""

で解消してとりあえず元に戻す

結論

1.
こちらの記事で載っていることを対応(事前に以下のやつが出るのでローカルにダウンロードしておく)

スクリーンショット 2021-11-17 18.11.05.png
※URL(https://download.cypress.io/desktop/9.0.0?platform=darwin&arch=x64)

2.
https://stackoverflow.com/questions/63839627/while-installing-cypress-through-command-npm-install-cypress-save-dev-getting

CYPRESS_INSTALL_BINARY=~/Downloads/cypress.zip npm install cypress --save-dev

で対応

で起動のコマンドを以下にしていたので、それを実行すると無事起動した

  "scripts": {
    "start": "PORT=5555 react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "cy:open": "cypress open" //これのこと
  },

0
2
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
2