Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

neu create fail behind a proxy #198

Open
Fabien-B opened this issue Mar 8, 2023 · 2 comments
Open

neu create fail behind a proxy #198

Fabien-B opened this issue Mar 8, 2023 · 2 comments
Labels

Comments

@Fabien-B
Copy link

Fabien-B commented Mar 8, 2023

I am on Linux behind a proxy. I have the http_proxy and https_proxy environment variables set.
I am using neu CLI: v9.4.0

$ neu create myApp

neu: INFO Downloading neutralinojs/neutralinojs-minimal template to myApp directory...
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: connect ECONNREFUSED 140.82.121.4:443
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1487:16)
Emitted 'error' event on Writable instance at:
    at eventHandlers.<computed> (/usr/local/lib/node_modules/@neutralinojs/neu/node_modules/follow-redirects/index.js:14:24)
    at ClientRequest.emit (node:events:513:28)
    at TLSSocket.socketErrorListener (node:_http_client:496:9)
    at TLSSocket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '140.82.121.4',
  port: 443
}

Node.js v18.13.0

Are environment variables honored ? Is there a way to use neu create from behind a proxy?

@Kanai2003
Copy link

@Fabien-B
The error message ECONNREFUSED typically means that a TCP connection attempt was refused by the server
you should try using sudo

@Kanai2003
Copy link

Kanai2003 commented Feb 26, 2024

@shalithasuranga please assign this issue to me
my approach: add a support system for proxy setting to download

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants