{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7257","labels_url":"https://api.github.com/repos/npm/npm/issues/7257/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7257/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7257/events","html_url":"https://github.com/npm/npm/issues/7257","id":56207006,"number":7257,"title":"Can't login/publish using CLI","user":{"login":"piranna","id":532414,"avatar_url":"https://avatars.githubusercontent.com/u/532414?v=3","gravatar_id":"","url":"https://api.github.com/users/piranna","html_url":"https://github.com/piranna","followers_url":"https://api.github.com/users/piranna/followers","following_url":"https://api.github.com/users/piranna/following{/other_user}","gists_url":"https://api.github.com/users/piranna/gists{/gist_id}","starred_url":"https://api.github.com/users/piranna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piranna/subscriptions","organizations_url":"https://api.github.com/users/piranna/orgs","repos_url":"https://api.github.com/users/piranna/repos","events_url":"https://api.github.com/users/piranna/events{/privacy}","received_events_url":"https://api.github.com/users/piranna/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-02T08:11:17Z","updated_at":"2015-02-06T22:55:48Z","closed_at":"2015-02-06T22:55:48Z","body":"I've recently changed of machine, so yesterday when trying to publish a package it requested my login credentials (ok). Problem is that it didn't worked. The same user & password worked on the web interface (https://www.npmjs.com/~piranna), but on the command line both ```npm publish``` & ```npm login``` returns a 404 error, both when using directly the main npm registry or through my company http mirror proxy.\r\n\r\nnpm-debug.log output:\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'login', '--verbose' ]\r\n2 info using npm@2.1.6\r\n3 info using node@v0.11.15\r\n4 verbose node symlink /usr/bin/node\r\n5 verbose adduser before first PUT { name: 'piranna',\r\n5 verbose adduser   password: 'XXXXX',\r\n5 verbose adduser   email: 'piranna@gmail.com',\r\n5 verbose adduser   _id: 'org.couchdb.user:piranna',\r\n5 verbose adduser   type: 'user',\r\n5 verbose adduser   roles: [],\r\n5 verbose adduser   date: '2015-02-02T07:52:01.188Z' }\r\n6 verbose request on initialization, where is /-/user/org.couchdb.user:piranna\r\n7 verbose request after pass 1, where is /-/user/org.couchdb.user:piranna\r\n8 verbose request url raw /-/user/org.couchdb.user:piranna\r\n9 verbose request resolving registry [ 'https://registry.npmjs.org/-/user/org.couchdb.user:piranna',\r\n9 verbose request   './-/user/org.couchdb.user:piranna' ]\r\n10 verbose request after pass 2, where is https://registry.npmjs.org/-/user/-/user/org.couchdb.user:piranna\r\n11 verbose request new user, so can't send auth\r\n12 info attempt registry request try #1 at 08:52:01\r\n13 verbose request id 2cefda0b5d1bff46\r\n14 http request PUT https://registry.npmjs.org/-/user/-/user/org.couchdb.user:piranna\r\n15 http 404 https://registry.npmjs.org/-/user/-/user/org.couchdb.user:piranna\r\n16 verbose headers { date: 'Mon, 02 Feb 2015 07:52:03 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-lhr6332-LHR',\r\n16 verbose headers   'x-cache': 'MISS',\r\n16 verbose headers   'x-cache-hits': '0',\r\n16 verbose headers   'x-timer': 'S1422863523.787553,VS0,VE148',\r\n16 verbose headers   connection: 'close' }\r\n17 verbose adduser back [ { [Error: not_found missing: -/user/-/user/org.couchdb.user:piranna] 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:piranna\r\n18 verbose stack     at RegClient.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:260:14)\r\n18 verbose stack     at Request._callback (/usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:197:65)\r\n18 verbose stack     at Request.self.callback (/usr/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/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/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/piranna/Proyectos/qunit-reporter-lcov\r\n21 error Linux 3.16.0-30-generic\r\n22 error argv \"/usr/bin/node\" \"/usr/bin/npm\" \"login\" \"--verbose\"\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:piranna\r\n27 verbose exit [ 1, true ]\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/73328652","html_url":"https://github.com/npm/npm/issues/7257#issuecomment-73328652","issue_url":"https://api.github.com/repos/npm/npm/issues/7257","id":73328652,"user":{"login":"othiym23","id":418097,"avatar_url":"https://avatars.githubusercontent.com/u/418097?v=3","gravatar_id":"","url":"https://api.github.com/users/othiym23","html_url":"https://github.com/othiym23","followers_url":"https://api.github.com/users/othiym23/followers","following_url":"https://api.github.com/users/othiym23/following{/other_user}","gists_url":"https://api.github.com/users/othiym23/gists{/gist_id}","starred_url":"https://api.github.com/users/othiym23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/othiym23/subscriptions","organizations_url":"https://api.github.com/users/othiym23/orgs","repos_url":"https://api.github.com/users/othiym23/repos","events_url":"https://api.github.com/users/othiym23/events{/privacy}","received_events_url":"https://api.github.com/users/othiym23/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T22:55:48Z","updated_at":"2015-02-06T22:55:48Z","body":"Closing as resolved."}}