{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/10203","labels_url":"https://api.github.com/repos/npm/npm/issues/10203/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/10203/comments","events_url":"https://api.github.com/repos/npm/npm/issues/10203/events","html_url":"https://github.com/npm/npm/issues/10203","id":114442334,"number":10203,"title":"Downloads project from git instead of using linked version","user":{"login":"andy-hanson","id":5387404,"avatar_url":"https://avatars.githubusercontent.com/u/5387404?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-hanson","html_url":"https://github.com/andy-hanson","followers_url":"https://api.github.com/users/andy-hanson/followers","following_url":"https://api.github.com/users/andy-hanson/following{/other_user}","gists_url":"https://api.github.com/users/andy-hanson/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-hanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-hanson/subscriptions","organizations_url":"https://api.github.com/users/andy-hanson/orgs","repos_url":"https://api.github.com/users/andy-hanson/repos","events_url":"https://api.github.com/users/andy-hanson/events{/privacy}","received_events_url":"https://api.github.com/users/andy-hanson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-01T00:29:56Z","updated_at":"2015-11-05T04:37:13Z","closed_at":null,"body":"I have a package.json looking like:\r\n\r\n\t{\r\n\t\t\"dependencies\": {\r\n\t\t\t\"mason-compile\": \"mason-lang/mason-compile\"\r\n\t\t}\r\n\t}\r\n\r\nI have already run `npm link ../mason-compile` and intend to use my local version of that project.\r\n\r\nHowever, when I run `npm install`, npm downloads the online `mason-compile`'s dependencies and installs those to `node_modules`. (The linked version was a dummy package with no dependencies, so nothing else should have been installed.)\r\n"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/153954584","html_url":"https://github.com/npm/npm/issues/10203#issuecomment-153954584","issue_url":"https://api.github.com/repos/npm/npm/issues/10203","id":153954584,"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-11-05T04:37:13Z","updated_at":"2015-11-05T04:37:13Z","body":"Thanks for bringing this up.\r\n\r\nI believe that this is expected behavior.  Running `npm install` will cause npm to try to install all dependencies as specified, and in this case you have specified the `mason-compile` module using the git shorthand.\r\n\r\nI don't know, architecturally, how hard it would be to change this behaviour."}}