Skip to content

Node feature does not pick up proxy settings #702

@jmedelmann

Description

@jmedelmann

The install.sh script for the node feature uses npm to install pnpm (Line 231: npm install -g pnpm).
Because npm does not pickup the proxy environmentals http_proxy, https_proxy and no_proxy (which are automatically propagated by docker when present in the ~/.docker/config.json configuration as httpProxy, httpsProxy and noProxy) by itself, the script will always fail behind a proxy.
This is a bug in the install script because this is a special situation not automatically handled by Visual Studio Code or Docker but which must be taken care of by the calling script.

Could you please fix this as follows (bash-compatible)?

[ ! -z "$http_proxy" ] && npm set proxy="$http_proxy"
[ ! -z "$https_proxy" ] && npm set https-proxy="$https_proxy"
[ ! -z "$no_proxy" ] && npm set noproxy="$no_proxy"
npm install -g pnpm

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions