{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/8636","labels_url":"https://api.github.com/repos/npm/npm/issues/8636/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/8636/comments","events_url":"https://api.github.com/repos/npm/npm/issues/8636/events","html_url":"https://github.com/npm/npm/issues/8636","id":90089144,"number":8636,"title":"could not install with git http","user":{"login":"alexey-shaposhnikov","id":2097562,"avatar_url":"https://avatars.githubusercontent.com/u/2097562?v=3","gravatar_id":"","url":"https://api.github.com/users/alexey-shaposhnikov","html_url":"https://github.com/alexey-shaposhnikov","followers_url":"https://api.github.com/users/alexey-shaposhnikov/followers","following_url":"https://api.github.com/users/alexey-shaposhnikov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-shaposhnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-shaposhnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-shaposhnikov/subscriptions","organizations_url":"https://api.github.com/users/alexey-shaposhnikov/orgs","repos_url":"https://api.github.com/users/alexey-shaposhnikov/repos","events_url":"https://api.github.com/users/alexey-shaposhnikov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-shaposhnikov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/feature-request","name":"feature-request","color":"ACE1AF"},{"url":"https://api.github.com/repos/npm/npm/labels/git","name":"git","color":"F34E31"},{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-22T12:48:18Z","updated_at":"2015-08-26T22:41:37Z","closed_at":null,"body":"Hi dear developers. Thank you for the awesome npm.\r\n\r\nI have a private repo on gitlab were available only http(not httpS). I haven't admin permissions. I want to install package with the following command\r\n``` \r\nnpm install git+http://gitlab.myawesome.com/project/name.git\r\n```\r\n\r\nnpm debug log\r\n```\r\ncat npm-debug.log \r\n0 info it worked if it ends with ok\r\n1 verbose cli [ 'node',\r\n1 verbose cli   '/usr/local/bin/npm',\r\n1 verbose cli   'install',\r\n1 verbose cli   'git+http://gitlab.myawesome.com/project/name.git' ]\r\n2 info using npm@2.11.3\r\n3 info using node@v0.12.0\r\n4 verbose node symlink /usr/local/bin/node\r\n5 verbose install initial load of /Users/alexey/test/package.json\r\n6 verbose readDependencies loading dependencies from /Users/alexey/test/package.json\r\n7 silly cache add args [ 'git+http://gitlab.myawesome.com/project/name.git',\r\n7 silly cache add   null ]\r\n8 verbose cache add spec git+http://gitlab.myawesome.com/project/name.git\r\n9 silly cache add parsed spec { raw: 'git+http://gitlab.myawesome.com/project/name.git,\r\n9 silly cache add   scope: null,\r\n9 silly cache add   name: null,\r\n9 silly cache add   rawSpec: 'git+http://gitlab.myawesome.com/project/name.git,\r\n9 silly cache add   spec: 'http://gitlab.myawesome.com/project/name.git,\r\n9 silly cache add   type: 'git' }\r\n10 verbose addRemoteGit caching git+http://gitlab.myawesome.com/project/name.git\r\n11 silly tryClone cloning git+http://gitlab.myawesome.com/project/name.git via git+http://gitlab.myawesome.com/project/name.git\r\n12 verbose tryClone some-name-git-1d546686 not in flight; caching\r\n13 info git [ 'clone',\r\n13 info git   '--template=/Users/alexey/.npm/_git-remotes/_templates',\r\n13 info git   '--mirror',\r\n13 info git   'http://gitlab.myawesome.com/project/name.git',\r\n13 info git   '/Users/alexey/.npm/_git-remotes/name-git-1d546686' ]\r\n14 error git clone --template=/Users/alexey/.npm/_git-remotes/_templates --mirror http://gitlab.myawesome.com/project/name.git /Users/alexey/.npm/_git-remotes/name-git-1d546686: Cloning into bare repository '/Users/alexey/.npm/_git-remotes/name-git-1d546686'...\r\n14 error git clone --template=/Users/alexey/.npm/_git-remotes/_templates --mirror http://gitlab.myawesome.com/project/name.git /Users/alexey/.npm/_git-remotes/name-git-1d546686: fatal: Authentication failed for 'http://gitlab.myawesome.com/project/name.git'\r\n15 verbose stack Error: Command failed: git clone --template=/Users/alexey/.npm/_git-remotes/_templates --mirror http://gitlab.myawesome.com/project/name.git /Users/alexey/.npm/_git-remotes/name-git-1d546686\r\n15 verbose stack Cloning into bare repository '/Users/alexey/.npm/_git-remotes/name-git-1d546686'...\r\n15 verbose stack fatal: Authentication failed for 'http://gitlab.myawesome.com/project/name.git'\r\n15 verbose stack\r\n15 verbose stack     at ChildProcess.exithandler (child_process.js:744:12)\r\n15 verbose stack     at ChildProcess.emit (events.js:110:17)\r\n15 verbose stack     at maybeClose (child_process.js:1008:16)\r\n15 verbose stack     at Socket.<anonymous> (child_process.js:1176:11)\r\n15 verbose stack     at Socket.emit (events.js:107:17)\r\n15 verbose stack     at Pipe.close (net.js:476:12)\r\n16 verbose cwd /Users/alexey/test\r\n17 error Darwin 14.0.0\r\n18 error argv \"node\" \"/usr/local/bin/npm\" \"install\" \"git+http://gitlab.myawesome.com/project/name.git\"\r\n19 error node v0.12.0\r\n20 error npm  v2.11.3\r\n21 error code 128\r\n22 error Command failed: git clone --template=/Users/alexey/.npm/_git-remotes/_templates --mirror http://gitlab.myawesome.com/project/name.git /Users/alexey/.npm/_git-remotes/name-git-1d546686\r\n22 error Cloning into bare repository '/Users/alexey/.npm/_git-remotes/name-git-1d546686'...\r\n22 error fatal: Authentication failed for 'http://gitlab.myawesome.com/project/name.git'\r\n23 error If you need help, you may report this error at:\r\n23 error     <https://github.com/npm/npm/issues>\r\n24 verbose exit [ 1, true ]\r\n```\r\n\r\nThe next command works properly but I really don't want to add my username and password into package.json\r\n\r\n``` \r\nnpm install git+http://username:password@gitlab.myawesome.com/project/name.git\r\n```\r\n\r\nThe question: **how can I install pkg via http?**"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/135197830","html_url":"https://github.com/npm/npm/issues/8636#issuecomment-135197830","issue_url":"https://api.github.com/repos/npm/npm/issues/8636","id":135197830,"user":{"login":"benoror","id":119117,"avatar_url":"https://avatars.githubusercontent.com/u/119117?v=3","gravatar_id":"","url":"https://api.github.com/users/benoror","html_url":"https://github.com/benoror","followers_url":"https://api.github.com/users/benoror/followers","following_url":"https://api.github.com/users/benoror/following{/other_user}","gists_url":"https://api.github.com/users/benoror/gists{/gist_id}","starred_url":"https://api.github.com/users/benoror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoror/subscriptions","organizations_url":"https://api.github.com/users/benoror/orgs","repos_url":"https://api.github.com/users/benoror/repos","events_url":"https://api.github.com/users/benoror/events{/privacy}","received_events_url":"https://api.github.com/users/benoror/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T22:41:37Z","updated_at":"2015-08-26T22:41:37Z","body":"+2 Totally agree with @leonexis "}}