{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7189","labels_url":"https://api.github.com/repos/npm/npm/issues/7189/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7189/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7189/events","html_url":"https://github.com/npm/npm/issues/7189","id":55076404,"number":7189,"title":"npm login problems with 0.11.15, 404, user not found","user":{"login":"sam-github","id":17607,"avatar_url":"https://avatars.githubusercontent.com/u/17607?v=3","gravatar_id":"","url":"https://api.github.com/users/sam-github","html_url":"https://github.com/sam-github","followers_url":"https://api.github.com/users/sam-github/followers","following_url":"https://api.github.com/users/sam-github/following{/other_user}","gists_url":"https://api.github.com/users/sam-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-github/subscriptions","organizations_url":"https://api.github.com/users/sam-github/orgs","repos_url":"https://api.github.com/users/sam-github/repos","events_url":"https://api.github.com/users/sam-github/events{/privacy}","received_events_url":"https://api.github.com/users/sam-github/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-21T21:01:22Z","updated_at":"2015-01-22T17:27:52Z","closed_at":null,"body":"Underlying issue that #7188 was silent about.\r\n\r\nWhat's happening here:\r\n\r\n1. I'm being asked to login. When I switch to 0.10.35, I don't have to login, when I switch to 0.11.35 auth fails. This is reproduceable.\r\n2. When I try to login with 0.11.15, it fails. This is probably underlying cause of (1)\r\n3.  #7188, that with log level of warn, npm install silently fails\r\n\r\n\r\n```\r\nsam@samtu:~/w/sn/strongops/agent (fix-create-historgram-for-0.11.15 $) % npm install debug\r\nnpm info it worked if it ends with ok\r\nnpm info using npm@2.1.6\r\nnpm info using node@v0.11.15\r\nnpm info attempt registry request try #1 at 12:50:41\r\nnpm info retry will retry, error on last attempt: Error: This request requires auth credentials. Run `npm login` and repeat the request.\r\nnpm info attempt registry request try #2 at 12:50:51\r\nnpm info retry will retry, error on last attempt: Error: This request requires auth credentials. Run `npm login` and repeat the request.\r\n^C\r\nsam@samtu:~/w/sn/strongops/agent (fix-create-historgram-for-0.11.15 $) % node -v\r\nv0.11.15\r\nsam@samtu:~/w/sn/strongops/agent (fix-create-historgram-for-0.11.15 $) % npm login\r\nUsername: (octet) \r\nPassword: (or leave unchanged) \r\nEmail: (this IS public) (sam@strongloop.com) \r\nnpm ERR! Linux 3.16.0-29-generic\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"login\"\r\nnpm ERR! node v0.11.15\r\nnpm ERR! npm  v2.1.6\r\nnpm ERR! code E404\r\n\r\nnpm ERR! 404 not_found missing: -/user/-/user/org.couchdb.user:octet\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/sam/w/sn/strongops/agent/npm-debug.log\r\nsam@samtu:~/w/sn/strongops/agent (fix-create-historgram-for-0.11.15 $) % npm login\r\nUsername: (octet) \r\nPassword: (or leave unchanged) \r\nEmail: (this IS public) (sam@strongloop.com) \r\nnpm ERR! Linux 3.16.0-29-generic\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"login\"\r\nnpm ERR! node v0.11.15\r\nnpm ERR! npm  v2.1.6\r\nnpm ERR! code E404\r\n\r\nnpm ERR! 404 not_found missing: -/user/-/user/org.couchdb.user:octet\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/sam/w/sn/strongops/agent/npm-debug.log\r\nsam@samtu:~/w/sn/strongops/agent (fix-create-historgram-for-0.11.15 $) % npm -v\r\n2.1.6\r\n```\r\n\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'login' ]\r\n2 info using npm@2.1.6\r\n3 info using node@v0.11.15\r\n4 verbose node symlink /usr/local/bin/node\r\n5 verbose adduser before first PUT { name: 'octet',\r\n5 verbose adduser   password: 'XXXXX',\r\n5 verbose adduser   email: 'sam@strongloop.com',\r\n5 verbose adduser   _id: 'org.couchdb.user:octet',\r\n5 verbose adduser   type: 'user',\r\n5 verbose adduser   roles: [],\r\n5 verbose adduser   date: '2015-01-21T20:54:54.117Z' }\r\n6 verbose request on initialization, where is /-/user/org.couchdb.user:octet\r\n7 verbose request after pass 1, where is /-/user/org.couchdb.user:octet\r\n8 verbose request url raw /-/user/org.couchdb.user:octet\r\n9 verbose request resolving registry [ 'https://registry.npmjs.org/-/user/org.couchdb.user:octet',\r\n9 verbose request   './-/user/org.couchdb.user:octet' ]\r\n10 verbose request after pass 2, where is https://registry.npmjs.org/-/user/-/user/org.couchdb.user:octet\r\n11 verbose request new user, so can't send auth\r\n12 info attempt registry request try #1 at 12:54:54\r\n13 verbose request id f8755bf3bd490095\r\n14 http request PUT https://registry.npmjs.org/-/user/-/user/org.couchdb.user:octet\r\n15 http 404 https://registry.npmjs.org/-/user/-/user/org.couchdb.user:octet\r\n16 verbose headers { date: 'Wed, 21 Jan 2015 20:54:54 GMT',\r\n16 verbose headers   server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',\r\n16 verbose headers   'content-type': 'application/json',\r\n16 verbose headers   'cache-control': 'max-age=0',\r\n16 verbose headers   'content-length': '41',\r\n16 verbose headers   'accept-ranges': 'bytes',\r\n16 verbose headers   via: '1.1 varnish',\r\n16 verbose headers   'x-served-by': 'cache-lax1427-LAX',\r\n16 verbose headers   'x-cache': 'MISS',\r\n16 verbose headers   'x-cache-hits': '0',\r\n16 verbose headers   'x-timer': 'S1421873694.449950,VS0,VE37',\r\n16 verbose headers   connection: 'close' }\r\n17 verbose adduser back [ { [Error: not_found missing: -/user/-/user/org.couchdb.user:octet] statusCode: 404, code: 'E404' },\r\n17 verbose adduser   { error: 'not_found', reason: 'missing' },\r\n17 verbose adduser   '{\"error\":\"not_found\",\"reason\":\"missing\"}' ]\r\n18 verbose stack Error: not_found missing: -/user/-/user/org.couchdb.user:octet\r\n18 verbose stack     at RegClient.<anonymous> (/usr/local/stow/node/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:260:14)\r\n18 verbose stack     at Request._callback (/usr/local/stow/node/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:197:65)\r\n18 verbose stack     at Request.self.callback (/usr/local/stow/node/lib/node_modules/npm/node_modules/request/request.js:364:22)\r\n18 verbose stack     at Request.emit (events.js:110:17)\r\n18 verbose stack     at Request.<anonymous> (/usr/local/stow/node/lib/node_modules/npm/node_modules/request/request.js:1318:14)\r\n18 verbose stack     at Request.emit (events.js:129:20)\r\n18 verbose stack     at IncomingMessage.<anonymous> (/usr/local/stow/node/lib/node_modules/npm/node_modules/request/request.js:1266:12)\r\n18 verbose stack     at IncomingMessage.emit (events.js:129:20)\r\n18 verbose stack     at _stream_readable.js:908:16\r\n18 verbose stack     at process._tickCallback (node.js:355:11)\r\n19 verbose statusCode 404\r\n20 verbose cwd /home/sam/w/sn/strongops/agent\r\n21 error Linux 3.16.0-29-generic\r\n22 error argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"login\"\r\n23 error node v0.11.15\r\n24 error npm  v2.1.6\r\n25 error code E404\r\n26 error 404 not_found missing: -/user/-/user/org.couchdb.user:octet\r\n27 verbose exit [ 1, true ]\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/71060453","html_url":"https://github.com/npm/npm/issues/7189#issuecomment-71060453","issue_url":"https://api.github.com/repos/npm/npm/issues/7189","id":71060453,"user":{"login":"designfrontier","id":422540,"avatar_url":"https://avatars.githubusercontent.com/u/422540?v=3","gravatar_id":"","url":"https://api.github.com/users/designfrontier","html_url":"https://github.com/designfrontier","followers_url":"https://api.github.com/users/designfrontier/followers","following_url":"https://api.github.com/users/designfrontier/following{/other_user}","gists_url":"https://api.github.com/users/designfrontier/gists{/gist_id}","starred_url":"https://api.github.com/users/designfrontier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designfrontier/subscriptions","organizations_url":"https://api.github.com/users/designfrontier/orgs","repos_url":"https://api.github.com/users/designfrontier/repos","events_url":"https://api.github.com/users/designfrontier/events{/privacy}","received_events_url":"https://api.github.com/users/designfrontier/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T17:27:52Z","updated_at":"2015-01-22T17:27:52Z","body":"I am seeing this as well\r\n\r\noutput:\r\n```\r\nalways-auth = false\r\n```\r\n\r\nand the error itself:\r\n```\r\nnpm ERR! Darwin 14.0.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"login\" \"--registry\" \"http://registry.npmjs.org\"\r\nnpm ERR! node v0.11.15\r\nnpm ERR! npm  v2.1.6\r\nnpm ERR! code E404\r\n\r\nnpm ERR! 404 not_found missing: -/user/-/user/org.couchdb.user:daniel_sellers\r\n```\r\n"}}