{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/6422","labels_url":"https://api.github.com/repos/npm/npm/issues/6422/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/6422/comments","events_url":"https://api.github.com/repos/npm/npm/issues/6422/events","html_url":"https://github.com/npm/npm/issues/6422","id":45131645,"number":6422,"title":"installing modules with git slugs improperly resolves resource urls","user":{"login":"dstokes","id":408980,"avatar_url":"https://avatars.githubusercontent.com/u/408980?v=3","gravatar_id":"","url":"https://api.github.com/users/dstokes","html_url":"https://github.com/dstokes","followers_url":"https://api.github.com/users/dstokes/followers","following_url":"https://api.github.com/users/dstokes/following{/other_user}","gists_url":"https://api.github.com/users/dstokes/gists{/gist_id}","starred_url":"https://api.github.com/users/dstokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstokes/subscriptions","organizations_url":"https://api.github.com/users/dstokes/orgs","repos_url":"https://api.github.com/users/dstokes/repos","events_url":"https://api.github.com/users/dstokes/events{/privacy}","received_events_url":"https://api.github.com/users/dstokes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-10-07T16:52:06Z","updated_at":"2015-02-05T22:53:20Z","closed_at":null,"body":"```sh\r\n$ npm install -g org/private-module\r\n...\r\n\r\n$ npm ls -g\r\nnpm ERR! Unsupported URL Type: git+git+ssh://git@github.com:org/private-module#hash\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <http://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/stefansundin/npm-debug.log\r\n```\r\nnote the `git+git+ssh://`protocol.\r\n\r\ninstalling with the full git ssh url seems to fix the problem:\r\n```sh\r\n$ npm install -g git+ssh://git@github.com:org/private-module.git\r\n```\r\n\r\nhere's the debug log\r\n```log\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ 'node', '/usr/local/bin/npm', 'ls', '-g' ]\r\n2 info using npm@2.0.0\r\n3 info using node@v0.10.32\r\n4 verbose node symlink /usr/local/bin/node\r\n6 verbose stack Error: Unsupported URL Type: git+git+ssh://git@github.com:org/private-module#hash\r\n6 verbose stack     at parseUrl (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:173:13)\r\n6 verbose stack     at npa (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:74:12)\r\n6 verbose stack     at makeArchy_ (/usr/local/lib/node_modules/npm/lib/ls.js:281:9)\r\n6 verbose stack     at /usr/local/lib/node_modules/npm/lib/ls.js:296:14\r\n6 verbose stack     at Array.map (native)\r\n6 verbose stack     at makeArchy_ (/usr/local/lib/node_modules/npm/lib/ls.js:295:22)\r\n6 verbose stack     at makeArchy (/usr/local/lib/node_modules/npm/lib/ls.js:228:13)\r\n6 verbose stack     at /usr/local/lib/node_modules/npm/lib/ls.js:65:13\r\n6 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:138:5\r\n6 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/read-installed/read-installed.js:251:14\r\n7 verbose cwd /Users/user\r\n8 error Darwin 13.4.0\r\n9 error argv \"node\" \"/usr/local/bin/npm\" \"ls\" \"-g\"\r\n10 error node v0.10.32\r\n11 error npm  v2.0.0\r\n12 error Unsupported URL Type: git+git+ssh://git@github.com:org/private-module#hash\r\n13 error If you need help, you may report this error at:\r\n13 error     <http://github.com/npm/npm/issues>\r\n14 verbose exit [ 1, true ]\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/73147579","html_url":"https://github.com/npm/npm/issues/6422#issuecomment-73147579","issue_url":"https://api.github.com/repos/npm/npm/issues/6422","id":73147579,"user":{"login":"smikes","id":5124609,"avatar_url":"https://avatars.githubusercontent.com/u/5124609?v=3","gravatar_id":"","url":"https://api.github.com/users/smikes","html_url":"https://github.com/smikes","followers_url":"https://api.github.com/users/smikes/followers","following_url":"https://api.github.com/users/smikes/following{/other_user}","gists_url":"https://api.github.com/users/smikes/gists{/gist_id}","starred_url":"https://api.github.com/users/smikes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smikes/subscriptions","organizations_url":"https://api.github.com/users/smikes/orgs","repos_url":"https://api.github.com/users/smikes/repos","events_url":"https://api.github.com/users/smikes/events{/privacy}","received_events_url":"https://api.github.com/users/smikes/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T22:53:20Z","updated_at":"2015-02-05T22:53:20Z","body":"Can this issue now be closed?\r\n\r\nFrom the above discussion, I think this is an old bug that is fixed in current `npm` versions (2.4.1 is `latest`).  If it's not fixed, just let us know and it won't be closed.\r\n\r\nWe are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!)\r\n\r\nThanks!\r\n"}}