question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packaging error:Get "https://github.com/electron/electron/releases/download/v10.1.2/electron-v10.1.2-darwin-x64.zip": proxyconnect tcp: dial tcp :0: connect: can't assign requested address

See original GitHub issue

Today, I used “yarn package” to package, but got the following error:

  • electron-builder  version=22.8.1 os=19.6.0
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=release/builder-effective-config.yaml
  • packaging       platform=darwin arch=x64 electron=10.1.2 appOutDir=release/mac
  **⨯ Get "https://github.com/electron/electron/releases/download/v10.1.2/electron-v10.1.2-darwin-x64.zip": proxyconnect tcp: dial tcp :0: connect: can't assign requested address**
github.com/develar/app-builder/pkg/download.(*Downloader).follow.func1
	/Volumes/data/Documents/app-builder/pkg/download/downloader.go:206
github.com/develar/app-builder/pkg/download.(*Downloader).follow
	/Volumes/data/Documents/app-builder/pkg/download/downloader.go:234
github.com/develar/app-builder/pkg/download.(*Downloader).DownloadNoRetry
	/Volumes/data/Documents/app-builder/pkg/download/downloader.go:128
github.com/develar/app-builder/pkg/download.(*Downloader).Download
	/Volumes/data/Documents/app-builder/pkg/download/downloader.go:112
github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).doDownload
	/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:192
github.com/develar/app-builder/pkg/electron.(*ElectronDownloader).Download
	/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:177
github.com/develar/app-builder/pkg/electron.downloadElectron.func1.1
	/Volumes/data/Documents/app-builder/pkg/electron/electronDownloader.go:73
github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2
	/Volumes/data/Documents/app-builder/pkg/util/async.go:68
runtime.goexit
	/usr/local/Cellar/go/1.14.5/libexec/src/runtime/asm_amd64.s:1373
  ⨯ /Users/liyunhua/study/electron/electron-stencil/electron-stencil/node_modules/app-builder-bin/mac/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE  stackTrace=

Environment: system: macos 10.15.6 Node: v14.9.0 electron: 10.1.2 yarn: 1.22.5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

17reactions
wenxiayilicommented, Sep 29, 2020

@amilajack @FalekPRO @zhukunpenglinyutong I just resolved this issue. This is my local npm proxy setting error, not an ERB issue. thank you for your help. Solution: delete npm proxy npm config delete proxy npm config delete https-proxy

0reactions
wenxiayilicommented, Sep 29, 2020

me too bug

Do you have any suggestions to solve this bug?

l’m sory,no

The same code can be packaged in win7, do mac packaging need other conditions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

redigo: getting dial tcp: connect: cannot assign requested ...
The application is using github.com/garyburd/redigo package as a redis proxy. I have two functions which are the only ones being used to read ......
Read more >
"dial tcp 127.0.0.1:8093: connect: cannot assign requested ...
Hi. I am running my application API in Golang with Couchbase Community Edition 6.0.0 build 1693 with GoCb v2.0.3.
Read more >
electron-react-boilerplate - Bountysource
Packaging error:Get ... proxyconnect tcp: dial tcp :0: connect: can't assign requested address.
Read more >
"can't assign requested address" error when doing many ...
I'm trying to benchmark a simple hello world server on my computer (osx). full error: "Get http://localhost:8080/: dial tcp 127.0.0.1:8080: can' ...
Read more >
listen tcp x.x.x.x:0: bind: cannot assign requested address ...
Streaming server stopped unexpectedly: listen tcp x.x.x.x:0: bind: cannot assign requested address. This document (000020350) is provided ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found