2017-02-15 69 views
0

我使用关系3.2和我有一个包含NPM-所有npmjsNPM-内部库,但例如当我执行npm --loglevel info install @reactivex/rxjs返回该错误:NPM代理500

npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info attempt registry request try #1 at 17:31:16
npm http request GET http://x.x.x.x:8081/repository/npm-all/@reactivex%2frxjs
npm http 200 http://x.x.x.x:8081/repository/npm-all/@reactivex%2frxjs
npm info addNameTag [ '@reactivex/rxjs', 'latest' ]
npm info retry fetch attempt 1 at 17:31:17
npm info attempt registry request try #1 at 17:31:17
npm http fetch GET http://x.x.x.x:8081/repository/npm-all/@reactivex/rxjs/-/rxjs-5.1.1.tgz
npm http fetch 500 http://x.x.x.x:8081/repository/npm-all/@reactivex/rxjs/-/rxjs-5.1.1.tgz
npm info retry will retry, error on last attempt: Error: server error 500

npmjs库配置:

enter image description here

.npmrc文件配置:

registry=http://x.x.x.x:8081/repository/npm-all/ 
+0

我看过这个错误报告在其中一个git论坛..你可以请尝试添加'151.101.36.162 registry.npmjs.com 151.101.36.162 registry.npmjs.org'到你的'主机'文件? –

+0

David可以在论坛中发布错误链接吗?我对此感兴趣。 – DarthHater

回答

0

我找到了解决方案通过将这些权限的用户anonymes:

  • NX-库 - 视图 - 故宫 - * - 读
  • nx-repository-view -npm - * - 浏览