Apache CouchDB+npm注册表couchapp调试配置=无法安装npm

Apache CouchDB+npm注册表couchapp调试配置=无法安装npm,npm,registry,couchdb,Npm,Registry,Couchdb,目前我正在创建一个私有npm注册表。我已经设置了couchdb并正在复制,正如我使用couchdb curl request/_all_docs验证的那样,它返回了NPM上存储的整个LIB列表。我遇到的问题是,我似乎无法运行npm安装。当我注释掉.npmrc中注册表变量的赋值时,我可以毫无问题地进行安装 以下是.npmrc中的相关行: 如果你能提供任何关于下一步尝试什么或搜索什么的提示,那将是最棒的。另外,我很高兴添加更多代码 这是一个简单的修复方法-我刚刚将注册表链接更改为 http://lo

目前我正在创建一个私有npm注册表。我已经设置了couchdb并正在复制,正如我使用couchdb curl request/_all_docs验证的那样,它返回了NPM上存储的整个LIB列表。我遇到的问题是,我似乎无法运行npm安装。当我注释掉.npmrc中注册表变量的赋值时,我可以毫无问题地进行安装

以下是.npmrc中的相关行:


如果你能提供任何关于下一步尝试什么或搜索什么的提示,那将是最棒的。另外,我很高兴添加更多代码

这是一个简单的修复方法-我刚刚将注册表链接更改为

http://localhost:5984/registry/

registry = http://localhost:5984/registry/_design/app/_rewrite
npmjs.org:couch = http://<user>:<password>@127.0.0.1:5984/registry
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ]
2 info using npm@5.5.1
3 info using node@v6.11.4
4 verbose npm-session 28055a10e204f6fe
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall npm-registry-couchapp@2.7.0
7 info lifecycle npm-registry-couchapp@2.7.0~preinstall: npm-registry-couchapp@2.7.0
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 silly install loadShrinkwrap
13 silly install loadAllDepsIntoIdealTree
14 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/request 70119ms attempt #3
15 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/rimraf 70114ms attempt #3
16 silly fetchPackageMetaData error for request@^2.42.0 500 Internal Server Error: request@^2.42.0
17 silly fetchPackageMetaData error for rimraf@~2.2.6 500 Internal Server Error: rimraf@~2.2.6
18 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/parse-json-response 70120ms attempt #3
19 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/which 70115ms attempt #3
20 silly fetchPackageMetaData error for parse-json-response@^1.0.1 500 Internal Server Error: parse-json-response@^1.0.1
21 silly fetchPackageMetaData error for which@^1.0.5 500 Internal Server Error: which@^1.0.5
22 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/couchapp 70119ms attempt #3
23 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/json 70119ms attempt #3
24 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/semver 70117ms attempt #3
25 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/tap 70124ms attempt #3
26 silly fetchPackageMetaData error for couchapp@~0.11.0 500 Internal Server Error: couchapp@~0.11.0
27 silly fetchPackageMetaData error for json@^9.0.2 500 Internal Server Error: json@^9.0.2
28 silly fetchPackageMetaData error for semver@4 500 Internal Server Error: semver@4
29 silly fetchPackageMetaData error for tap@* 500 Internal Server Error: tap@*
30 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/semver 70032ms attempt #3
31 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/json 70034ms attempt #3
32 http fetch GET 500 http://localhost:5984/registry/_design/app/_rewrite/couchapp 70035ms attempt #3
33 silly fetchPackageMetaData error for semver@4 500 Internal Server Error: semver@4
34 silly fetchPackageMetaData error for json@^9.0.2 500 Internal Server Error: json@^9.0.2
35 silly fetchPackageMetaData error for couchapp@~0.11.0 500 Internal Server Error: couchapp@~0.11.0
36 verbose stack Error: 500 Internal Server Error: semver@4
36 verbose stack     at fetch.then.res (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/fetchers/registry/fetch.js:42:19)
36 verbose stack     at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
36 verbose stack     at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
36 verbose stack     at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
36 verbose stack     at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
36 verbose stack     at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
36 verbose stack     at Async._drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:133:16)
36 verbose stack     at Async._drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:143:10)
36 verbose stack     at Immediate.Async.drainQueues (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:17:14)
36 verbose stack     at runCallback (timers.js:672:20)
36 verbose stack     at tryOnImmediate (timers.js:645:5)
36 verbose stack     at processImmediate [as _immediateCallback] (timers.js:617:5)
37 verbose cwd /Users/frontend/projects/npm-registry-couchapp
38 verbose Darwin 16.7.0
39 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
40 verbose node v6.11.4
41 verbose npm  v5.5.1
42 error code E500
43 error 500 Internal Server Error: semver@4
44 verbose exit [ 1, true ]