{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9798","labels_url":"https://api.github.com/repos/npm/npm/issues/9798/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9798/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9798/events","html_url":"https://github.com/npm/npm/issues/9798","id":109130841,"number":9798,"title":"Scoped name packages don't work when installed from github","user":{"login":"parkan","id":204986,"avatar_url":"https://avatars.githubusercontent.com/u/204986?v=3","gravatar_id":"","url":"https://api.github.com/users/parkan","html_url":"https://github.com/parkan","followers_url":"https://api.github.com/users/parkan/followers","following_url":"https://api.github.com/users/parkan/following{/other_user}","gists_url":"https://api.github.com/users/parkan/gists{/gist_id}","starred_url":"https://api.github.com/users/parkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkan/subscriptions","organizations_url":"https://api.github.com/users/parkan/orgs","repos_url":"https://api.github.com/users/parkan/repos","events_url":"https://api.github.com/users/parkan/events{/privacy}","received_events_url":"https://api.github.com/users/parkan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-30T16:32:01Z","updated_at":"2015-09-30T16:35:41Z","closed_at":null,"body":"I have a repo at https://github.com/parkan/graffiti-mongoose forked from https://github.com/RisingStack/graffiti-mongoose. Their package is named `@risingstack/graffiti-mongoose` (scoped name)\r\n\r\nIf I try to install directly from github (at any revision), I am unable to require the module:\r\n\r\n```\r\n[failtest]% npm init --yes\r\n[failtest]% npm install parkan/graffiti-mongoose --save (arkadiy@helium:~/mine/failtest)\r\nfailtest@1.0.0 /Users/arkadiy/mine/failtest\r\n└── @risingstack/graffiti-mongoose@2.0.0  (git://github.com/parkan/graffiti-mongoose.git#01a8480fa7d787a4d74bf3bcb257d01b4d73129a)\r\n\r\nnpm WARN EPACKAGEJSON failtest@1.0.0 No description\r\nnpm WARN EPACKAGEJSON failtest@1.0.0 No repository field.\r\n[failtest]% node                                        (arkadiy@helium:~/mine/failtest)\r\n> require('@risingstack/graffiti-mongoose');\r\nError: Cannot find module '@risingstack/graffiti-mongoose'\r\n    at Function.Module._resolveFilename (module.js:336:15)\r\n    at Function.Module._load (module.js:286:25)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at repl:1:1\r\n    at REPLServer.defaultEval (repl.js:164:27)\r\n    at bound (domain.js:250:14)\r\n    at REPLServer.runBound [as eval] (domain.js:263:12)\r\n    at REPLServer.<anonymous> (repl.js:393:12)\r\n    at emitOne (events.js:82:20)\r\n```\r\n\r\nHowever, if I install directly from npm, it works fine. Likewise, the same repo checked out to filesystem and installed from there works fine.\r\n\r\nIt appears that the github install loses a bunch of files:\r\n\r\n```\r\n[failtest]% ls node_modules/@risingstack/graffiti-mongoose\r\nCHANGELOG.md\tLICENSE\t\tfixture\r\nCONTRIBUTING.md\tREADME.md\tpackage.json\r\n```\r\n\r\nversus the real deal:\r\n```\r\n% ls node_modules/@risingstack/graffiti-mongoose\r\nCHANGELOG.md\t\t\t\tgraffiti-mongoose.sublime-project\r\nCONTRIBUTING.md\t\t\t\tgraffiti-mongoose.sublime-workspace\r\nLICENSE\t\t\t\t\tlib\r\nREADME.md\t\t\t\tpackage.json\r\nfixture\r\n```"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/144469394","html_url":"https://github.com/npm/npm/issues/9798#issuecomment-144469394","issue_url":"https://api.github.com/repos/npm/npm/issues/9798","id":144469394,"user":{"login":"parkan","id":204986,"avatar_url":"https://avatars.githubusercontent.com/u/204986?v=3","gravatar_id":"","url":"https://api.github.com/users/parkan","html_url":"https://github.com/parkan","followers_url":"https://api.github.com/users/parkan/followers","following_url":"https://api.github.com/users/parkan/following{/other_user}","gists_url":"https://api.github.com/users/parkan/gists{/gist_id}","starred_url":"https://api.github.com/users/parkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkan/subscriptions","organizations_url":"https://api.github.com/users/parkan/orgs","repos_url":"https://api.github.com/users/parkan/repos","events_url":"https://api.github.com/users/parkan/events{/privacy}","received_events_url":"https://api.github.com/users/parkan/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T16:35:41Z","updated_at":"2015-09-30T16:35:41Z","body":"I can confirm that this is broken when installing from the parent repo as well, not just the fork"}}