Skip to content

[BUG] npm config list should show HTTP_PROXY/HTTPS_PROXY/NOPROXY #4170

@deepy

Description

@deepy

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

npm config list shows all proxy settings except environment variables like HTTP_PROXY, NOPROXY, etc

Expected Behavior

Setting HTTP_PROXY, HTTPS_PROXY or NOPROXY will affect how run npm runs, having these show in npm config list will help users actually see what settings their environment has and prevent easy mistakes.

The expected behaviour would be that an empty npm config list shouldn't use any proxies, or rather, all proxy settings used by npm should be listed.

Steps To Reproduce

No response

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issueRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions