I set up my local npm registry referring to https://github.com/isaacs/npmjs.org .
I could be able to deploy couchapp and replicate documents from the public registry
to the my local npm registry (http://localhost:5984/npm).
But I can not use registry operation commands such as npm publish, npm install, ... etc
with '--registry http://localhost:5984/' option.
I found that the latest npm (0.3.5) did not set the correct 'Host' header if the port of the given registry is not 80, so that registry rewrite rules were ignored.
I send you the fix patch for this issue.
Could you please confirm and merge it?
Set the 'host' header value as 'host:port' when the port is specified…
… in registry configuration
Sorry, this error occurs on 0.3.15, and I also found the error on 0.3.16.
the patch is for the commit 100f137.
Closed by cca69c9465a8fb98789897ab67393564226722cf Put port on hostname.
Closes GH-726 Put port on hostname.