# Error An unexpected error occurred: "https://registry.yarnpkg.com/ember-template-lint/-/ember-template-lint-5.11.2.tgz: ETIMEDOUT"

**URL:** https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177
**Category:** Self-hosting
**Created:** [December 11, 2023, 1:32am UTC](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177 "2023-12-11T01:32:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sober](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sober/32/344783_2.png) [@sober](https://meta.discourse.org/u/sober)
#### Post date: [December 11, 2023, 1:32am UTC](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177/1 "2023-12-11T01:32:32Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/b/c/6/bc646930bb55487791f191d15cb48bdff7a7c05d.png)

I recently upgraded and found that this installation always failed, and finally found that there was a problem with the ssl security link certificate of this link, causing the link to not install, not a network issue

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/f/9/ff9c4c34ace675568ecb785912619be4ff04898d.png)

---

<div class="post-metadata">

### Author: ![sober](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sober/32/344783_2.png) [@sober](https://meta.discourse.org/u/sober)
#### Post date: [December 11, 2023, 6:27am UTC](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177/2 "2023-12-11T06:27:38Z")

</div>

To find the solution, modify the yarn source in \*.yml

```plaintext
hooks:
  after_code:
    - exec:
        cd: $home
        cmd:
          - grep -rl "registry.yarnpkg.com" . | tee ./find_cache.txt | xargs sed -i "s/registry.yarnpkg.com/registry.npmmirror.com/g" && cat ./find_cache.txt && rm ./find_cache.txt

```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 11, 2023, 10:29am UTC](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177/3 "2023-12-11T10:29:38Z")

</div>

Did using the npm mirror work? Are you in China? There was a commit recently that had to do with using a different mirror automatically, but I think that was for github, not yarn.

---

<div class="post-metadata">

### Author: ![sober](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sober/32/344783_2.png) [@sober](https://meta.discourse.org/u/sober)
#### Post date: [December 11, 2023, 10:45am UTC](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177/4 "2023-12-11T10:45:50Z")

</div>

I use it in China and have vpn link, I found that the ssl certificate of [registry.yarnpkg.com](http://registry.yarnpkg.com) is not there, which should be the direct cause of access timeout. I am testing to adjust [registry.yarnpkg.com](http://registry.yarnpkg.com) to an accelerated mirror source by using configuration instructions, it seems that it can be used. Such as the mirror source [registry.npmmirror.com](http://registry.npmmirror.com)

---

<div class="post-metadata">

### Author: ![sober](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sober/32/344783_2.png) [@sober](https://meta.discourse.org/u/sober)
#### Post date: [December 11, 2023, 12:38pm UTC](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177/5 "2023-12-11T12:38:43Z")

</div>

Find the solution and replace the accelerated yarn source

> [@Error An unexpected error occurred: "https://registry.yarnpkg.com/ember-template-lint/-/ember-template-lint-5.11.2.tgz: ETIMEDOUT"](https://meta.discourse.org/t/error-an-unexpected-error-occurred-https-registry-yarnpkg-com-ember-template-lint-ember-template-lint-5-11-2-tgz-etimedout/288177/2):
>
> To find the solution, modify the yarn source in \*.yml hooks: after\_code: - exec: cd: $home cmd: - grep -rl "registry.yarnpkg.com" . | tee ./find\_cache.txt | xargs sed -i "s/registry.yarnpkg.com/registry.npmmirror.com/g" && cat ./find\_cache.txt && rm ./find\_cache.txt
