現在、私はプライベートnpmレジストリを作成中です。私はcouchdbを設定して複製しています。couchdb curlリクエスト/ _all_docsを使用して検証しましたが、NPMに格納されているlibsのリスト全体が返されます。私が持っている問題は、私がnpm install
を実行しているように見えないということです。レジストリ変数の割り当てを.npmrc
にコメントアウトすると、問題なくインストールできます。私はnpm-registry-couchapp
を使用していますし、そこにもすべての方向に従った、local.ini
にお勧めのラインを追加しましたApache CouchDB + npm-registry-couchappデバッグ構成= npmをインストールできない
registry = http://localhost:5984/registry/_design/app/_rewrite
npmjs.org:couch = http://<user>:<password>@127.0.0.1:5984/registry
:ここ
は.npmrc
から関連する行です。
私はターミナルでnpm install
をしようとすると、それは次のステップにハングアップ:fetchMetadata: sill install loadAllDepsIntoIdealTree
次のコマンドも失敗した、npm \ --registry=http://localhost:5984/registry/_design/app/_rewrite \ install node-sass
ここでNPMのデバッグログからの出力です:
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 ]
次に試してみたいことや何を検索するかについてのヒントがあれば、それが最も優れています。また、より多くのコードを追加できてうれしいです。