Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


npm publish not working behind proxy. #2888

amitarchie opened this Issue · 1 comment

1 participant


I am facing a weird issue using npm publish behind corporate proxy. npm publish works when I am not behind the proxy and failed the moment I am back behind proxy. Though, host name is accessible using wget.

npm http PUT http://registry.localhost:5984/d2575bc8ccb154fb7a4412c0b10010a6
npm http 404 http://registry.localhost:5984/d2575bc8ccb154fb7a4412c0b10010a6
npm ERR! registry error parsing json
npm ERR! publish Failed PUT response 404
npm ERR! SyntaxError: Unexpected token <
npm ERR!
npm ERR! Network Error - dns_unresolved_hostname

npm ERR! at Object.parse (native)
npm ERR! at RegClient. (/home/esghaar/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:226:23)
npm ERR! at Request.init.self.callback (/home/esghaar/local/lib/node_modules/npm/node_modules/request/main.js:120:22)
npm ERR! at Request.EventEmitter.emit (events.js:96:17)
npm ERR! at Request. (/home/esghaar/local/lib/node_modules/npm/node_modules/request/main.js:648:16)
npm ERR! at Request.EventEmitter.emit (events.js:123:20)
npm ERR! at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/home/esghaar/local/lib/node_modules/npm/node_modules/request/main.js:610:14)
npm ERR! at IncomingMessage.EventEmitter.emit (events.js:123:20)
npm ERR! at IncomingMessage._emitEnd (http.js:366:10)
npm ERR! at HTTPParser.parserOnMessageComplete as onMessageComplete
npm ER



@amitarchie amitarchie closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.