【发布时间】:2023-03-05 17:33:01
【问题描述】:
我使用带有代理 npm 存储库的 nexus 3(影响从 3.2 到 3.13.0_01 的所有版本)。 有时当我构建我的 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
为什么会出现消息?
【问题讨论】: