yarnpkg/yarn

Yarn ignores no_proxy environment variable when proxy property set

Open

#5,048 创建于 2017年12月6日

在 GitHub 查看
 (33 评论) (24 反应) (1 负责人)JavaScript (41,514 star) (2,731 fork)batch import
cat-compatibilitycat-featurehelp wantedtriaged

描述

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

贡献者指南