带有代理 npm 存储库的 nexus 3



我将 nexus 3(影响从 3.2 到 3.13.0_01 的所有版本(与代理 npm 存储库一起使用。 有时当我构建我的 Angular 项目时,我会收到这样的错误:

[ERROR] npm ERR! node v6.11.2
[ERROR] npm ERR! npm  v3.10.10
[ERROR] npm ERR! code ETARGET
[ERROR] 
[ERROR] npm ERR! notarget No compatible version found: ci-info@^1.3.0
[ERROR] npm ERR! notarget Valid install targets:
[ERROR] npm ERR! notarget 1.1.3, 1.1.2, 1.1.1, 1.1.0, 1.0.1, 1.0.0
[ERROR] npm ERR! notarget 
[ERROR] npm ERR! notarget This is most likely not a problem with npm itself.
[ERROR] npm ERR! notarget In most cases you or one of your dependencies are requesting
[ERROR] npm ERR! notarget a package version that doesn't exist.
[ERROR] npm ERR! notarget 
[ERROR] npm ERR! notarget It was specified as a dependency of 'is-ci'
[ERROR] npm ERR! notarget 

我发现 is-ci 依赖于 21 小时前发布的 npm。

一两天后,问题就消失了,没有我的参与。 我的存储库没有负缓存。 为什么会这样?

重新启动后问题解决了。 我还注意到消息:"系统要求:最大文件描述符 [4096] 可能太低,至少增加到 [65536]。

Nexus在用户"nexus"下运行:

nexus$ ulimit -Sn
65536
nexus$ ulimit -Hn
65536

为什么会出现消息?

尝试使存储库中的缓存失效。

您可以在此处找到更多信息:https://help.sonatype.com/repomanager3/configuration/repository-management#RepositoryManagement-ManagingRepositoriesandRepositoryGroups

以下是缓存失效的片段:

使缓存失效

"使缓存失效"按钮使此存储库的缓存失效。确切的行为取决于存储库类型:

代理存储库

使代理存储库上的缓存失效会清除代理缓存,以便下次请求缓存为可用的任何项目时将再次检查是否有任何更改。这还会清除代理存储库的负缓存,以便在下次请求时再次检查在定义的缓存周期内未找到的任何项目。

存储库组

使存储库组的缓存失效会清除组缓存,以便清除组缓存中获取和保存的任何项目,例如 Maven 元数据。此操作还会使属于此组的任何代理和组存储库的缓存失效。

最新更新