Skip to content

Installation via npm fails when proxy is configured since v3.45.3Β #2427

@bjoernahrens

Description

@bjoernahrens

Description

I'm trying to install @go-task/cli both locally on my MacBook Pro (macOS 26) and in an AWS CodeBuild project (Amazon Linux).
Both are configured to use a proxy server. In both cases, the installation fails since the release of version v3.45.3.

The error message I get is this:

npm error code 1
npm error path /Users/USER/PROJECT/node_modules/@go-task/cli
npm error command failed
npm error command sh -c node install.js
npm error Downloading https://github.com/go-task/task/releases/download/v3.45.4/task_darwin_arm64.tar.gz to archive-RzAh2Z/task_darwin_arm64.tar.gz...
npm error /Users/USER/PROEJCT/node_modules/@go-task/cli/lib.js:150
npm error 		throw new Error(`Installation failed: ${err.message}`);
npm error 		      ^
npm error
npm error Error: Installation failed: Download failed: socket hang up
npm error     at install (/Users/USER/PROEJCT/node_modules/@go-task/cli/lib.js:150:9)
npm error     at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
npm error
npm error Node.js v22.19.0

In both environments, a proxy is configured using both environment variables (HTTP_PROXY, HTTPS_PROXY) and npm config (proxy, https-proxy)

Prior version up to v3.44.1 install just fine.

Version

v3.45.3, v3.45.4

Operating system

macOS, Linux

Experiments Enabled

No response

Example Taskfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: releasingChanges related to the release process.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions