# Nexus npm proxy repo can't find package

**URL:** https://community.sonatype.com/t/nexus-npm-proxy-repo-cant-find-package/2262
**Category:** Sonatype Nexus Repository
**Created:** [August 2, 2019, 8:18am UTC](https://community.sonatype.com/t/nexus-npm-proxy-repo-cant-find-package/2262 "2019-08-02T08:18:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ado](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ado/32/769_2.png) [@ado](https://community.sonatype.com/u/ado)
#### Post date: [August 2, 2019, 8:18am UTC](https://community.sonatype.com/t/nexus-npm-proxy-repo-cant-find-package/2262/1 "2019-08-02T08:18:49Z")

</div>

Hello!

I have a strange scenario using npm proxy repo:

1. I have hosted and proxy repo

2. They grouped in group-repo for properly downloading

3. I’m 100% sure that package name, for example, react-ui 1.1.1 is present in [npmjs.org](http://npmjs.org) (or in proxy repo)

4)But when developer trying to use this package through yarn install - he has an error that he can’t find that package and give an option to choose another version instead

1. Problem seems to disappear in about 20 hours. If developer tries to build project again with version of package 1.1.1 - then package will be downloaded and cached inside Nexus.

Problem seems to be rare for us but when it happens - it’s irritates. Would be grateful for any help\documentation\settings\workaround.

[https://www.npmjs.com/package/@skbkontur/react-ui![image%20(2)|690x460](upload://8OaihaOzuFrD5Vo0AWa1uhffftZ.png)](https://www.npmjs.com/package/@skbkontur/react-ui!%5Bimage%20(2)%7C690x460%5D(upload://8OaihaOzuFrD5Vo0AWa1uhffftZ.png))

Also if developer removes nexus-group-repo from npm.rc the package will be downloaded without issues.

---

<div class="post-metadata">

### Author: ![jtom](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/jtom/32/68_2.png) [@jtom](https://community.sonatype.com/u/jtom)
#### Post date: [August 2, 2019, 2:54pm UTC](https://community.sonatype.com/t/nexus-npm-proxy-repo-cant-find-package/2262/2 "2019-08-02T14:54:51Z")

</div>

Are you on the latest NXRM?  
If not I recommend upgrading see if that helps. We had a cache problem using groups we fixed in I believe 3.16 and a follow up in 3.17 that was more rare.  
If you cannot upgrade, you can try invalidating the repository cache when you hit this and see if that fixes the problem. If that solves it, I’d suggest upgrading=)  
-Joe

---

<div class="post-metadata">

### Author: ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)
#### Post date: [August 2, 2019, 3:15pm UTC](https://community.sonatype.com/t/nexus-npm-proxy-repo-cant-find-package/2262/3 "2019-08-02T15:15:18Z")

</div>

How often Nexus Repo checks for updates to the metadata of packages is determined by the proxy repository’s “maximum metadata age” setting. By default that is set to 1440 minutes (24 hours). This metadata contains the versions that are available for packages. If you need more frequent updates from the npm registry lower that value.

Rich

---

<div class="post-metadata">

### Author: ![ado](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/ado/32/769_2.png) [@ado](https://community.sonatype.com/u/ado)
#### Post date: [August 2, 2019, 6:01pm UTC](https://community.sonatype.com/t/nexus-npm-proxy-repo-cant-find-package/2262/4 "2019-08-02T18:01:07Z")

</div>

Yes, we are on the latest version 3.18.0

Rich, thank you for advise, I will change that setting.
