isaacs/npm — Issue #1597: Improve error message when email address is incorrect
Author: baudehlo
Created: 2011-10-25 23:04:22+00:00
State: open

Previously npm didn't care if my email address didn't match when authenticating - it only looked at my username. So I had my username set right to "msergeant" and on one of my macs, my email was set to "helpme@gmail.com" but NPM had me listed as "helpme+npm@gmail.com".

This was harder to debug what the problem was than it should have been because the error given was:

```
$ npm publish
npm ERR! Error sending version data
npm ERR! Error: forbidden _npmUser must be a current maintainer: Haraka/1.0.1/-tag/latest
npm ERR! at Request.callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:181:12)
npm ERR! at Request. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:341:18)
npm ERR! at Request.emit (events.js:64:17)
npm ERR! at IncomingMessage. (/usr/local/lib/node_modules/npm/node_modules/request/main.js:309:16)
npm ERR! at IncomingMessage.emit (events.js:81:20)
npm ERR! at HTTPParser.onMessageComplete (http.js:133:23)
npm ERR! at Socket.ondata (http.js:1213:22)
npm ERR! at Socket._onReadable (net.js:684:27)
npm ERR! at IOWatcher.onReadable [as callback] (net.js:180:10)
```

It would be nice if it mentioned the email address instead.