yarnpkg/yarn

Yarn ignores no_proxy environment variable when proxy property set

Open

#5,048 opened on Dec 6, 2017

View on GitHub
 (33 comments) (24 reactions) (1 assignee)JavaScript (41,514 stars) (2,731 forks)batch import
cat-compatibilitycat-featurehelp wantedtriaged

Description

Do you want to request a feature or report a bug? Both

What is the current behavior? If proxy and http-proxy are set, NO_PROXY and no_proxy environment variables are ignored.

If the current behavior is a bug, please provide the steps to reproduce.

  1. Set proxy and https-proxy config and can find from yarn config list
...
info npm config
{ proxy: 'http://some.proxy.host:8080/',
  'https-proxy': 'http://some.proxy.host:8080/',
...
  1. Set NO_PROXY or no_proxy environment variable like $ no_proxy="some.url.private.repo"
  2. Run yarn install
  3. proxy and https-proxy work but no_proxy environment variable is ignored.

What is the expected behavior? NO_PROXY or no_proxy environment variable is applied.

Please mention your node.js, yarn and operating system version. Ubuntu 16.04 yarn 1.3.2

Contributor guide