# Yarn failed on Windows os environment

**URL:** https://travis-ci.community/t/yarn-failed-on-windows-os-environment/591
**Category:** Windows
**Created:** [November 1, 2018, 12:41am UTC](https://travis-ci.community/t/yarn-failed-on-windows-os-environment/591 "2018-11-01T00:41:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![liudonghua123](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/liudonghua123/32/634_2.png) [@liudonghua123](https://travis-ci.community/u/liudonghua123)
#### Post date: [November 1, 2018, 12:41am UTC](https://travis-ci.community/t/yarn-failed-on-windows-os-environment/591/1 "2018-11-01T00:41:03Z")

</div>

Hey!

Recently, I tried to build a electron app ([https://github.com/liudonghua123/system-network-info](https://github.com/liudonghua123/system-network-info)) on travis-ci, here is the [.travis.yml](https://github.com/liudonghua123/system-network-info/blob/master/.travis.yml).

And in build log console, it always gave me following error.

```auto
$ yarn
yarn install v1.12.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...

```

I have tried `yarn config list, yarn config delete proxy, yarn install --network-timeout 1000000`, but none of them helps.

---

<div class="post-metadata">

### Author: ![joshuef](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/joshuef/32/190_2.png) [@joshuef](https://travis-ci.community/u/joshuef)
#### Post date: [February 27, 2019, 10:28am UTC](https://travis-ci.community/t/yarn-failed-on-windows-os-environment/591/2 "2019-02-27T10:28:42Z")

</div>

so, removing `yarn.lock` and then

```auto
before_install:
  - yarn config delete proxy
  - npm config rm proxy
  - npm config rm https-proxy

```

got this working for us! I’m not sure if yarn.lock removal is necessary. I’m testing that out now.
