Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有代理npm存储库的Nexus3_Npm_Nexus3 - Fatal编程技术网

带有代理npm存储库的Nexus3

带有代理npm存储库的Nexus3,npm,nexus3,Npm,Nexus3,我将Nexus3(受3.2到3.13.0_01的所有版本影响)与代理npm存储库一起使用。 有时,当我构建角度项目时,会出现如下错误: [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

我将Nexus3(受3.2到3.13.0_01的所有版本影响)与代理npm存储库一起使用。 有时,当我构建角度项目时,会出现如下错误:

[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 
我发现ci依赖于21小时前发布的npm

一两天后,我的问题就消失了。 我的回购没有负缓存。 为什么会这样

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

Nexus在用户“Nexus”下运行:


为什么会这样?

尝试使存储库中的缓存无效

您可以在此处找到更多信息:

以下是缓存失效的片段:

使缓存无效

“无效缓存”按钮将使此存储库的缓存无效。具体行为取决于存储库类型:

代理存储库

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

存储库组

使存储库组的缓存无效,将清除组缓存,以便清除组缓存中获取和保留的所有项目,例如Maven元数据。此操作还会使作为此组成员的任何代理和组存储库的缓存无效


当发布链接作为答案时,请确保包含链接内容的最低描述,否则您的问题可能会被标记为
而不是答案
。查看更多信息
nexus$ ulimit -Sn
65536
nexus$ ulimit -Hn
65536