2017-10-30 7 views
0

Derzeit bin ich dabei, eine private npm-Registrierung zu erstellen. Ich habe couchdb eingerichtet und repliziere, wie ich mit der couchdb curl request/_all_docs verifiziert habe, die scheinbar die gesamte Liste der auf NPM gespeicherten libs zurückgibt. Das Problem, das ich habe, ist, dass ich nicht scheinen kann, npm install zu laufen. Wenn ich die Zuweisung der Registrierungsvariablen in .npmrc auskommentiere, kann ich ohne Problem installieren.Apache CouchDB + npm-registry-coachapp Debugging-Konfiguration = kann nicht npm installieren

Hier sind die entsprechenden Zeilen aus .npmrc:

registry = http://localhost:5984/registry/_design/app/_rewrite 
npmjs.org:couch = http://<user>:<password>@127.0.0.1:5984/registry 

ich die empfohlenen Linien zu local.ini hinzugefügt haben, ich bin mit npm-registry-couchapp und haben alle Richtungen auch dort gefolgt.

Wenn ich npm install im Terminal versuchen, hängt es am folgenden Schritt auf: fetchMetadata: sill install loadAllDepsIntoIdealTree

Der folgende Befehl schlägt ebenfalls fehl, npm \ --registry=http://localhost:5984/registry/_design/app/_rewrite \ install node-sass

Hier ist der Ausgang aus dem Protokoll npm debug ist:

0 info it worked if it ends with ok 
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ] 
2 info using [email protected] 
3 info using [email protected] 
4 verbose npm-session 28055a10e204f6fe 
5 silly install runPreinstallTopLevelLifecycles 
6 silly preinstall [email protected] 
7 info lifecycle [email protected]~preinstall: [email protected] 
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 [email protected]^2.42.0 500 Internal Server Error: [email protected]^2.42.0 
17 silly fetchPackageMetaData error for [email protected]~2.2.6 500 Internal Server Error: [email protected]~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 [email protected]^1.0.1 500 Internal Server Error: [email protected]^1.0.1 
21 silly fetchPackageMetaData error for [email protected]^1.0.5 500 Internal Server Error: [email protected]^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 [email protected]~0.11.0 500 Internal Server Error: [email protected]~0.11.0 
27 silly fetchPackageMetaData error for [email protected]^9.0.2 500 Internal Server Error: [email protected]^9.0.2 
28 silly fetchPackageMetaData error for [email protected] 500 Internal Server Error: [email protected] 
29 silly fetchPackageMetaData error for [email protected]* 500 Internal Server Error: [email protected]* 
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 [email protected] 500 Internal Server Error: [email protected] 
34 silly fetchPackageMetaData error for [email protected]^9.0.2 500 Internal Server Error: [email protected]^9.0.2 
35 silly fetchPackageMetaData error for [email protected]~0.11.0 500 Internal Server Error: [email protected]~0.11.0 
36 verbose stack Error: 500 Internal Server Error: [email protected] 
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: [email protected] 
44 verbose exit [ 1, true ] 

Wenn Sie irgendwelche Tipps geben können, was als nächstes zu versuchen, oder was zu suchen, das wäre am besten. Außerdem bin ich glücklich, mehr Code hinzuzufügen.

Antwort

1

Es war eine einfache Lösung - Ich habe gerade den Registrierungslink zu

http://localhost:5984/registry/