Vote count:
0
I have a private npm registry running and want to get npm-www running against it. So far without running elasticsearch I'm able to use the site (without search functionality). I then stopped the web site and started eleasticsearch and the site again:
elasticsearch -d
npm2es --couch="http://localhost:5984/registry" --es="http://localhost:9200/npm"
# start the web site again
npm start
After this I can only browse to the page of a specific module eg /package/modulename if I attempt to view the homepage I get the following exceptions:
/opt/npm-www/models/recentauthors.js:44
row.key.shift()
^
TypeError: Cannot call method 'shift' of null
at /opt/npm-www/models/recentauthors.js:44:17
at Array.map (native)
at /opt/npm-www/models/recentauthors.js:43:29
at RegClient.get_ (/opt/npm-www/node_modules/npm/node_modules/npm-registry-client/lib/get.js:111:14)
at RegClient.<anonymous> (/opt/npm-www/node_modules/npm/node_modules/npm-registry-client/lib/get.js:47:12)
at fs.js:266:14
at /opt/npm-www/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:105:5
at Object.oncomplete (fs.js:107:15)
/opt/npm-www/models/browse.js:46
name: k[1],
^
2014-05-01T15:31:35.551Z INFO,REQUEST 127.0.0.1 GET /-/_view/fieldsInUse 200
TypeError: Cannot read property '1' of null
at transformKey.updated (/opt/npm-www/models/browse.js:46:12)
at /opt/npm-www/models/browse.js:181:12
at Array.map (native)
at transform (/opt/npm-www/models/browse.js:179:20)
at /opt/npm-www/models/browse.js:154:18
at saved (/opt/npm-www/node_modules/npm/node_modules/npm-registry-client/lib/get.js:148:7)
at /opt/npm-www/node_modules/npm/node_modules/graceful-fs/polyfills.js:133:7
at Object.oncomplete (fs.js:107:15)
Any ideas what I might be doing wrong?
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire