{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/2735","labels_url":"https://api.github.com/repos/npm/npm/issues/2735/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/2735/comments","events_url":"https://api.github.com/repos/npm/npm/issues/2735/events","html_url":"https://github.com/npm/npm/issues/2735","id":6332761,"number":2735,"title":"cannot publish module","user":{"login":"sitnin","id":115604,"avatar_url":"https://avatars.githubusercontent.com/u/115604?v=3","gravatar_id":"","url":"https://api.github.com/users/sitnin","html_url":"https://github.com/sitnin","followers_url":"https://api.github.com/users/sitnin/followers","following_url":"https://api.github.com/users/sitnin/following{/other_user}","gists_url":"https://api.github.com/users/sitnin/gists{/gist_id}","starred_url":"https://api.github.com/users/sitnin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitnin/subscriptions","organizations_url":"https://api.github.com/users/sitnin/orgs","repos_url":"https://api.github.com/users/sitnin/repos","events_url":"https://api.github.com/users/sitnin/events{/privacy}","received_events_url":"https://api.github.com/users/sitnin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2012-08-20T18:49:32Z","updated_at":"2015-02-06T01:32:33Z","closed_at":"2012-08-22T18:17:43Z","body":"Hello. I successfully performed \"npm adduser\" and has an ~/.npmrc consists of hash and email. \"npm whoami\" returns \"sitnin\" which is correct. I'm in the terminal in the module's root directory and performing \"npm publish\" getting this error message as a result:\n\n```\nnpm ERR! publish Failed PUT response undefined\nnpm ERR! Error: login error\nnpm ERR!     at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:80:22)\nnpm ERR!     at CouchLogin.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/couch-login/couch-login.js:109:46)\nnpm ERR!     at Request.init.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:120:22)\nnpm ERR!     at Request.EventEmitter.emit (events.js:91:17)\nnpm ERR!     at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:648:16)\nnpm ERR!     at Request.EventEmitter.emit (events.js:115:20)\nnpm ERR!     at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/usr/local/lib/node_modules/npm/node_modules/request/main.js:610:14)\nnpm ERR!     at IncomingMessage.EventEmitter.emit (events.js:115:20)\nnpm ERR!     at IncomingMessage._emitEnd (http.js:366:10)\nnpm ERR!     at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)\nnpm ERR! If you need help, you may report this log at:\nnpm ERR!     <http://github.com/isaacs/npm/issues>\nnpm ERR! or email it to:\nnpm ERR!     <npm-@googlegroups.com>\n\nnpm ERR! System Darwin 12.0.0\nnpm ERR! command \"node\" \"/usr/local/bin/npm\" \"publish\"\nnpm ERR! cwd /Users/gregor/Projects/anna\nnpm ERR! node -v v0.8.6\nnpm ERR! npm -v 1.1.50\nnpm ERR! \nnpm ERR! Additional logging details can be found in:\nnpm ERR!     /Users/gregor/Projects/anna/npm-debug.log\nnpm ERR! not ok code 0\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/73165837","html_url":"https://github.com/npm/npm/issues/2735#issuecomment-73165837","issue_url":"https://api.github.com/repos/npm/npm/issues/2735","id":73165837,"user":{"login":"howarddierking","id":889717,"avatar_url":"https://avatars.githubusercontent.com/u/889717?v=3","gravatar_id":"","url":"https://api.github.com/users/howarddierking","html_url":"https://github.com/howarddierking","followers_url":"https://api.github.com/users/howarddierking/followers","following_url":"https://api.github.com/users/howarddierking/following{/other_user}","gists_url":"https://api.github.com/users/howarddierking/gists{/gist_id}","starred_url":"https://api.github.com/users/howarddierking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howarddierking/subscriptions","organizations_url":"https://api.github.com/users/howarddierking/orgs","repos_url":"https://api.github.com/users/howarddierking/repos","events_url":"https://api.github.com/users/howarddierking/events{/privacy}","received_events_url":"https://api.github.com/users/howarddierking/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T01:32:33Z","updated_at":"2015-02-06T01:32:33Z","body":"I'm getting the same error. My setup is:\r\n* NPM enterprise\r\n* GitHub public with 2 factor authentication enabled - therefore configured using a personal access token in my ~/.npmrc (as follows)\r\n\r\n    @concur:registry=<PRIVATE NPM ENTERPRISE>\r\n    //<PRIVATE NPM ENTERPRISE>:_authToken=<PERSONAL ACCESS TOKEN>\r\n\r\nHere's my npm-debug.log\r\n\r\n    0 info it worked if it ends with ok\r\n    1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ]\r\n    2 info using npm@2.4.1\r\n    3 info using node@v0.10.35\r\n    4 verbose publish [ '.' ]\r\n    5 silly cache add args [ '.', null ]\r\n    6 verbose cache add spec .\r\n    7 silly cache add parsed spec { raw: '.',\r\n    7 silly cache add   scope: null,\r\n    7 silly cache add   name: null,\r\n    7 silly cache add   rawSpec: '.',\r\n    7 silly cache add   spec: '/Users/howardd/Dev/scratch/privatepkg',\r\n    7 silly cache add   type: 'directory' }\r\n    8 verbose addLocalDirectory /Users/howardd/.npm/@concur/helloPackage/0.0.1/package.tgz not in flight; packing\r\n    9 verbose tar pack [ '/Users/howardd/.npm/@concur/helloPackage/0.0.1/package.tgz',\r\n    9 verbose tar pack   '/Users/howardd/Dev/scratch/privatepkg' ]\r\n    10 verbose tarball /Users/howardd/.npm/@concur/helloPackage/0.0.1/package.tgz\r\n    11 verbose folder /Users/howardd/Dev/scratch/privatepkg\r\n    12 info prepublish @concur/helloPackage@0.0.1\r\n    13 verbose addLocalTarball adding from inside cache /Users/howardd/.npm/@concur/helloPackage/0.0.1/package.tgz\r\n    14 silly cache afterAdd @concur/helloPackage@0.0.1\r\n    15 verbose afterAdd /Users/howardd/.npm/@concur/helloPackage/0.0.1/package/package.json not in flight; writing\r\n    16 verbose afterAdd /Users/howardd/.npm/@concur/helloPackage/0.0.1/package/package.json written\r\n    17 silly publish { name: '@concur/helloPackage',\r\n    17 silly publish   version: '0.0.1',\r\n    17 silly publish   description: 'First example of a private package to test with NPM Enterprise',\r\n    17 silly publish   main: 'index.js',\r\n    17 silly publish   author: { name: 'Howard Dierking', email: 'howard.dierking@concur.com' },\r\n    17 silly publish   license: 'ISC',\r\n    17 silly publish   repository: { url: 'git@github.com:concur/helloPackage.git' },\r\n    17 silly publish   bugs: { url: 'https://github.com/concur/helloPackage/issues' },\r\n    17 silly publish   readme: 'ERROR: No README data found!',\r\n    17 silly publish   homepage: 'https://github.com/concur/helloPackage',\r\n    17 silly publish   _id: '@concur/helloPackage@0.0.1',\r\n    17 silly publish   scripts: {},\r\n    17 silly publish   _shasum: '4941cc8ebd5bc816fea1b740676e19433ee4fa9d',\r\n    17 silly publish   _from: '.' }\r\n    18 silly mapToRegistry name @concur/helloPackage\r\n    19 silly mapToRegistry scope (from package name) @concur\r\n    20 silly mapToRegistry registry <PRIVATE NPM ENTERPRISE>\r\n    21 silly mapToRegistry uri <PRIVATE NPM ENTERPRISE>/@concur%2fhelloPackage\r\n    22 verbose publish registryBase <PRIVATE NPM ENTERPRISE>\r\n    23 silly publish uploading /Users/howardd/.npm/@concur/helloPackage/0.0.1/package.tgz\r\n    24 verbose stack Error: auth required for publishing\r\n    24 verbose stack     at CachingRegistryClient.publish (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/publish.js:31:14)\r\n    24 verbose stack     at /usr/local/lib/node_modules/npm/lib/publish.js:134:14\r\n    24 verbose stack     at mapToRegistry (/usr/local/lib/node_modules/npm/lib/utils/map-to-registry.js:55:3)\r\n    24 verbose stack     at publish_ (/usr/local/lib/node_modules/npm/lib/publish.js:105:3)\r\n    24 verbose stack     at Array.1 (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)\r\n    24 verbose stack     at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)\r\n    24 verbose stack     at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:14:28)\r\n    24 verbose stack     at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:5)\r\n    24 verbose stack     at /usr/local/lib/node_modules/npm/lib/publish.js:65:5\r\n    24 verbose stack     at RES (/usr/local/lib/node_modules/npm/node_modules/inflight/inflight.js:23:14)\r\n    25 verbose cwd /Users/howardd/Dev/scratch/privatepkg\r\n    26 error Darwin 14.0.0\r\n    27 error argv \"node\" \"/usr/local/bin/npm\" \"publish\"\r\n    28 error node v0.10.35\r\n    29 error npm  v2.4.1\r\n    30 error code ENEEDAUTH\r\n    31 error need auth auth required for publishing\r\n    31 error need auth You need to authorize this machine using `npm adduser`\r\n    32 verbose exit [ 1, true ]"}}