{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/20883","repository_url":"https://api.github.com/repos/npm/npm","labels_url":"https://api.github.com/repos/npm/npm/issues/20883/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/20883/comments","events_url":"https://api.github.com/repos/npm/npm/issues/20883/events","html_url":"https://github.com/npm/npm/issues/20883","id":328948351,"node_id":"MDU6SXNzdWUzMjg5NDgzNTE=","number":20883,"title":"`npm adduser` authentication error ","user":{"login":"plibither8","id":31861755,"node_id":"MDQ6VXNlcjMxODYxNzU1","avatar_url":"https://avatars1.githubusercontent.com/u/31861755?v=4","gravatar_id":"","url":"https://api.github.com/users/plibither8","html_url":"https://github.com/plibither8","followers_url":"https://api.github.com/users/plibither8/followers","following_url":"https://api.github.com/users/plibither8/following{/other_user}","gists_url":"https://api.github.com/users/plibither8/gists{/gist_id}","starred_url":"https://api.github.com/users/plibither8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plibither8/subscriptions","organizations_url":"https://api.github.com/users/plibither8/orgs","repos_url":"https://api.github.com/users/plibither8/repos","events_url":"https://api.github.com/users/plibither8/events{/privacy}","received_events_url":"https://api.github.com/users/plibither8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-04T08:03:18Z","updated_at":"2018-06-05T10:20:59Z","closed_at":null,"author_association":"NONE","body":"#### I'm opening this issue because:\r\n\r\n  - [ ] npm is crashing.\r\n  - [ ] npm is producing an incorrect install.\r\n  - [x] npm is doing something I don't understand.\r\n  - [x] npm is producing incorrect or undesirable behavior.\r\n  - [ ] Other (_see below for feature requests_):\r\n\r\n#### What's going wrong?\r\nThis is the first time I am attempting to create a user or login into npm. Upon running `npm adduser` or `npm login` I get the following error:\r\n```\r\nnpm ERR! code EAUTHIP\r\nnpm ERR! Unable to authenticate, need: Basic\r\n```\r\nI have looked up other similar issues but none of them really clearly indicated any problem or gave a solution to the problem.\r\n\r\n#### How can the CLI team reproduce the problem?\r\nI have installed npm using the regular install procedure for Ubuntu (Linux) after which I have not edited, added or removed anything in the `.npmrc` file either. Thus I am not too sure how I can successfully replicate this problem in someone else's computer since these are the basic steps.\r\n\r\nDebug logs:\r\n```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'adduser' ]\r\n2 info using npm@6.1.0\r\n3 info using node@v8.11.1\r\n4 verbose npm-session 66e0842cf5778608\r\n5 verbose web login before first POST\r\n6 http request → POST https://registry.npmjs.org/-/v1/login\r\n7 http 401 ← Unauthorized (https://registry.npmjs.org/-/v1/login)\r\n8 verbose web login not supported, trying couch\r\n9 verbose login before first PUT { _id: 'org.couchdb.user:plibither8',\r\n9 verbose login   name: 'plibither8',\r\n9 verbose login   password: 'XXXXX',\r\n9 verbose login   type: 'user',\r\n9 verbose login   roles: [],\r\n9 verbose login   date: '2018-06-04T07:48:13.666Z' }\r\n10 http request → PUT https://registry.npmjs.org/-/user/org.couchdb.user:plibither8\r\n11 http 401 ← Unauthorized (https://registry.npmjs.org/-/user/org.couchdb.user:plibither8)\r\n12 verbose adduser before first PUT { _id: 'org.couchdb.user:plibither8',\r\n12 verbose adduser   name: 'plibither8',\r\n12 verbose adduser   password: 'XXXXX',\r\n12 verbose adduser   email: 'plibither8@gmail.com',\r\n12 verbose adduser   type: 'user',\r\n12 verbose adduser   roles: [],\r\n12 verbose adduser   date: '2018-06-04T07:48:16.217Z' }\r\n13 http request → PUT https://registry.npmjs.org/-/user/org.couchdb.user:plibither8\r\n14 http 401 ← Unauthorized (https://registry.npmjs.org/-/user/org.couchdb.user:plibither8)\r\n15 verbose stack Error: Unable to authenticate, need: Basic\r\n15 verbose stack     at fetch.defaults.catch.then.then.result (/usr/lib/node_modules/npm/node_modules/npm-profile/index.js:373:15)\r\n15 verbose stack     at <anonymous>\r\n15 verbose stack     at process._tickCallback (internal/process/next_tick.js:188:7)\r\n16 verbose statusCode 401\r\n17 verbose cwd /home/plibither8/Projects/Personal/licensed\r\n18 verbose Linux 4.13.0-41-generic\r\n19 verbose argv \"/usr/bin/node\" \"/usr/bin/npm\" \"adduser\"\r\n20 verbose node v8.11.1\r\n21 verbose npm  v6.1.0\r\n22 error code EAUTHIP\r\n23 error Unable to authenticate, need: Basic\r\n24 verbose exit [ 1, true ]\r\n```\r\n\r\n<!--\r\n    Please a complete description of how to reproduce the problem.\r\n    Include a gist of your npm-debug.log file.\r\n    If you've never used gist.github.com, start here:\r\n      https://github.com/EmmaRamirez/how-to-submit-your-npm-debug-log\r\n-->\r\n\r\n### supporting information:\r\n\r\n - `npm -v` prints: 6.1.0\r\n - `node -v` prints: v8.11.1\r\n - `npm config get registry` prints: https://registry.npmjs.org/\r\n - Windows, OS X/macOS, or Linux?: Linux Ubuntu 16.04\r\n - Network issues:\r\n   - Geographic location where npm was run:\r\n   - [ ] I use a proxy to connect to the npm registry.\r\n   - [ ] I use a proxy to connect to the web.\r\n   - [ ] I use a proxy when downloading Git repos.\r\n   - [ ] I access the npm registry via a VPN\r\n   - [ ] I don't use a proxy, but have limited or unreliable internet access.\r\n - Container:\r\n   - [ ] I develop using Vagrant on Windows.\r\n   - [ ] I develop using Vagrant on OS X or Linux.\r\n   - [ ] I develop / deploy using Docker.\r\n   - [ ] I deploy to a PaaS (Triton, Heroku).\r\n\r\n<!--\r\n    Thank you for contributing to npm! Please review this checklist\r\n    before submitting your issue.\r\n\r\n    - Please check if there's a solution in the troubleshooting wiki:\r\n      https://github.com/npm/npm/blob/latest/TROUBLESHOOTING.md\r\n\r\n    - Also ensure that your new issue conforms to npm's contribution guidelines:\r\n      https://github.com/npm/npm/blob/latest/CONTRIBUTING.md\r\n\r\n    - Participation in this open source project is subject to the npm Code of Conduct:\r\n      https://www.npmjs.com/policies/conduct\r\n\r\n    For feature requests, delete the above and uncomment the section following this one. But first, review the existing feature requests\r\n    and make sure there isn't one that already describes the feature\r\n    you'd like to see added:\r\n      https://github.com/npm/npm/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+label%3Aalready-looked-at\r\n-->\r\n\r\n<!--\r\n\r\n#### What's the feature?\r\n\r\n#### What problem is the feature intended to solve?\r\n\r\n#### Is the absence of this feature blocking you or your team? If so, how?\r\n\r\n#### Is this feature similar to an existing feature in another tool?\r\n\r\n#### Is this a feature you're prepared to implement, with support from the npm CLI team?\r\n\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/394658707","html_url":"https://github.com/npm/npm/issues/20883#issuecomment-394658707","issue_url":"https://api.github.com/repos/npm/npm/issues/20883","id":394658707,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDY1ODcwNw==","user":{"login":"endoftheline001","id":39934745,"node_id":"MDQ6VXNlcjM5OTM0NzQ1","avatar_url":"https://avatars0.githubusercontent.com/u/39934745?v=4","gravatar_id":"","url":"https://api.github.com/users/endoftheline001","html_url":"https://github.com/endoftheline001","followers_url":"https://api.github.com/users/endoftheline001/followers","following_url":"https://api.github.com/users/endoftheline001/following{/other_user}","gists_url":"https://api.github.com/users/endoftheline001/gists{/gist_id}","starred_url":"https://api.github.com/users/endoftheline001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endoftheline001/subscriptions","organizations_url":"https://api.github.com/users/endoftheline001/orgs","repos_url":"https://api.github.com/users/endoftheline001/repos","events_url":"https://api.github.com/users/endoftheline001/events{/privacy}","received_events_url":"https://api.github.com/users/endoftheline001/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T10:20:59Z","updated_at":"2018-06-05T10:20:59Z","author_association":"NONE","body":"I'm having the same issues! Hope someone can solve this."}}
{"actor":{"display_login":"endoftheline001"}}