【问题标题】:Can a repository manager or cache enable ember/npm/bower builds even during github.com outage?即使在 github.com 中断期间,存储库管理器或缓存也可以启用 ember/npm/bower 构建吗?
【发布时间】:2017-01-13 17:17:49
【问题描述】:

我们如何使我们的构建免受非常罕见的 github.com 中断的影响?

我们使用 maven、frontend-maven-plugin + sonatype-nexus v3.x 来创建私有缓存,从而使我们的构建免受中断或在主 npm 存储库或通过 bower 依赖项所做的修改(我们也在 nexus 上缓存这些)

status.github.com 报告了中断,我们看到我们的构建开始失败。

通过使用nexus repos 和shrinkwrap,我们将自己与大多数外部问题隔离开来,但不是这个。

如果您有任何想法,请告诉我。

错误

225632 verbose gentlyRm don't care about contents; nuking ./src/frontend/node_modules/.bin/ember
225633 info install ember-cli@2.4.3
225634 info postinstall ember-cli@2.4.3
225635 verbose unlock done using /opt/builds/build-dir/quick-lin-x64-develop/.npm/_locks/ember-cli-387axxxxbbdb3c2.lock for ./src/frontend/node_modules/ember-cli
225636 verbose stack Error: Command failed: git fetch -a origin
225636 verbose stack fatal: remote error:
225636 verbose stack
225636 verbose stack
225636 verbose stack     at ChildProcess.exithandler (child_process.js:744:12)
225636 verbose stack     at ChildProcess.emit (events.js:110:17)
225636 verbose stack     at maybeClose (child_process.js:1008:16)
225636 verbose stack     at Socket.<anonymous> (child_process.js:1176:11)
225636 verbose stack     at Socket.emit (events.js:107:17)
225636 verbose stack     at Pipe.close (net.js:476:12)

[ERROR] npm ERR! argv "src/frontend/node/node" "src/frontend/node/node_modules/npm/bin/npm-cli.js" "install" "--force"
[ERROR] npm ERR! node v0.12.1
[ERROR] npm ERR! npm  v2.14.12
[ERROR] npm ERR! code 128
[ERROR] 
[ERROR] npm ERR! Command failed: git fetch -a origin
[ERROR] npm ERR! fatal: remote error: 
[ERROR] npm ERR!   
[ERROR] npm ERR! 
[ERROR] npm ERR! 
[ERROR] npm ERR! If you need help, you may report this error at:
[ERROR] npm ERR!     <https://github.com/npm/npm/issues>

【问题讨论】:

    标签: ember.js npm nexus


    【解决方案1】:

    这总是一个有趣的。您可能会阅读我们在 Sonatype 上整理的有关此问题以及解决方法的文章:https://support.sonatype.com/hc/en-us/articles/213465048-Why-does-npm-client-need-access-to-URLs-other-than-my-private-registry-

    我不确定是哪个包导致了这种情况(我查看了 ember-cli,但它并没有立即跳出来给我看)。代码中某处的某些依赖项可能引用了 github URL。我会看看它是什么,然后使用我链接的参考文章从那里开始,以获取有关解决该问题的信息。希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-18
      • 1970-01-01
      • 2015-03-05
      • 1970-01-01
      • 2012-02-01
      • 1970-01-01
      相关资源
      最近更新 更多