# Npm group repo requires cache invalidation to see package in private repo

**URL:** <https://community.sonatype.com/t/npm-group-repo-requires-cache-invalidation-to-see-package-in-private-repo/2687>\
**Category:** Sonatype Nexus Repository\
**Created:** [October 15, 2019, 2:58pm UTC](https://community.sonatype.com/t/npm-group-repo-requires-cache-invalidation-to-see-package-in-private-repo/2687 "2019-10-15T14:58:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan.bannon](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ryan.bannon](https://community.sonatype.com/u/ryan.bannon)\
**Post date:** [October 15, 2019, 2:58pm UTC](https://community.sonatype.com/t/npm-group-repo-requires-cache-invalidation-to-see-package-in-private-repo/2687/1 "2019-10-15T14:58:14Z")

</div>

Hello,

- nexus 3.18.0-01
- Ubuntu
- behind nginx reverse proxy

I have several npm repos. Of importance are:

- npm-private: hosted npm packages
- npm-proxy: proxies [npmjs.org](http://npmjs.org)
- npm-group: group with the above two

In npm-private, I have several packages. For simplicity,

- foo: several versions uploaded
- bar: several version uploaded

On my local host, I have logged into npm-group (using npm login). The following works fine:

- npm view foo
- npm install foo

However, the following fails:

- npm view bar

> npm ERR! code E200  
> npm ERR! Failed to stream response due to: Missing blob and no handler set to recover. : bar
> 
> npm ERR! A complete log of this run can be found in:  
> npm ERR! /home/me/.npm/\_logs/2019-10-15T14\_37\_53\_962Z-debug.log

I can see all the versions of “bar” in the Nexus UI.

After I invalidate the cache of npm-group, the issue goes away and “bar” is available.

This seems like a bug in Nexus. I thought this had been fixed? Note that I have not upgraded beyond 3.18.0-01 as the issue list for versions higher than that don’t seem to solve my problem and would take some resources that I can’t afford right now.

Note: I have saved a support zip for the issue and can make it available to Sonatype support if required.

---

<div class="post-metadata">

**Author:** ![ryan.bannon](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ryan.bannon](https://community.sonatype.com/u/ryan.bannon)\
**Post date:** [October 18, 2019, 3:37pm UTC](https://community.sonatype.com/t/npm-group-repo-requires-cache-invalidation-to-see-package-in-private-repo/2687/2 "2019-10-18T15:37:35Z")

</div>

Is there anybody who could please help with this? It happens multiple times…always having to invalidate the cache. I can provide extra logs if required.

---

<div class="post-metadata">

**Author:** ![mben-soula](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mben-soula/32/81_2.png) [@mben-soula](https://community.sonatype.com/u/mben-soula)\
**Post date:** [October 18, 2019, 4:48pm UTC](https://community.sonatype.com/t/npm-group-repo-requires-cache-invalidation-to-see-package-in-private-repo/2687/3 "2019-10-18T16:48:14Z")

</div>

Hi Ryan,

Our apologies for the delay. I will do my best to investigate this further when time permits. Would you be able to provide the logs. Additionally can you tell me wether you are using a HA setup.

Moncef

---

<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:** [October 18, 2019, 5:11pm UTC](https://community.sonatype.com/t/npm-group-repo-requires-cache-invalidation-to-see-package-in-private-repo/2687/4 "2019-10-18T17:11:47Z")

</div>

This is a community forum. Something like this would be better handled by filing a bug in the “dev - nexus” project at [https://issues.sonatype.org](https://issues.sonatype.org).

Regards,

Rich
