0
0

More than 1 year has passed since last update.

【小ネタ】electron-builder をプロキシ環境下で利用していたら躓いた話

Last updated at Posted at 2021-10-14

プロキシ環境下でelectron のビルドをしたい

エラー内容

electron-builder を利用しようと思って

npm i -D electron-builder --force

と打ったところ、以下のようにエラー出た。

Get "https://github.com/electron/electron/releases/download/v15.1.2/electron-v15.1.2-win32-x64.zip": dial tcp 52.69.186.44:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

対策

~/.npmrc にプロキシ情報を保存する。

proxy=http://ユーザ名:URLエンコード済みのパスワード@プロキシ名
https-proxy=http://ユーザ名:URLエンコード済みのパスワード@プロキシ名

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