Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yarn ignores proxy settings

I try to get a build job running using yarn and react-native on a windows 10 machine. The following commands are executed inside of jenkins to prepare the actual build of a native Windows app.

yarn config set proxy http://192.109.190.88:8080 
yarn config set https-proxy http://192.109.190.88:8080 
yarn add react-native 

This leads to the following output although the proxy settings are correct (tried "http://192.109.190.88:8080/" as well):

yarn add v0.27.5
[1/4] Resolving packages...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...

Any ideas on why this happens are well appreciated.

like image 938
Felix Willnecker Avatar asked Aug 11 '17 09:08

Felix Willnecker


People also ask

What is yarn proxy server?

Web application proxy server is introduced in YARN to reduce the possibility of web-based attacks through YARN. By default, it is run as part of ResourceManager but could be configured by the administrator by setting up the following property in yarn-site.


1 Answers

yarn version 2 requires a different variable name:

yarn config set httpProxy http://...
yarn config set httpsProxy http://...
like image 76
Thomas Seeling Avatar answered Sep 28 '22 11:09

Thomas Seeling