{"action":"opened","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7375","labels_url":"https://api.github.com/repos/npm/npm/issues/7375/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7375/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7375/events","html_url":"https://github.com/npm/npm/issues/7375","id":57908862,"number":7375,"title":"Feature request: Equivalent of Composer's --prefer-source","user":{"login":"motin","id":793037,"avatar_url":"https://avatars.githubusercontent.com/u/793037?v=3","gravatar_id":"","url":"https://api.github.com/users/motin","html_url":"https://github.com/motin","followers_url":"https://api.github.com/users/motin/followers","following_url":"https://api.github.com/users/motin/following{/other_user}","gists_url":"https://api.github.com/users/motin/gists{/gist_id}","starred_url":"https://api.github.com/users/motin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motin/subscriptions","organizations_url":"https://api.github.com/users/motin/orgs","repos_url":"https://api.github.com/users/motin/repos","events_url":"https://api.github.com/users/motin/events{/privacy}","received_events_url":"https://api.github.com/users/motin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-17T10:45:45Z","updated_at":"2015-02-17T10:45:45Z","closed_at":null,"body":"From Composer's documentation:\r\n\r\n--prefer-source: If --prefer-source is enabled, composer will install from source if there is one. **This is useful if you want to make a bugfix to a project and get a local git clone of the dependency directly**.\r\n\r\nThe current workflow to fix bugs in dependencies is to check out your own fork and use npm link, which requires manual tracking of external git repositories (submodules?) and extra hassle for every dependency you'd like to extend/fork/contribute to. \r\n\r\nThis option is a huge timesaver for those that regularly extend or fix bugs in existing modules, and by lowering the \"cost\" of contributing to modules, the npm community can expect to receive more pull requests with smaller bug fixes.\r\n\r\nSupport for a similar feature appears to be missing in npm according to https://github.com/npm/npm/issues/6700#issuecomment-71302066\r\n\r\nRelated Stackoverflow question: http://stackoverflow.com/questions/23527393/can-npm-install-the-git-folder-for-dependencies/28559920#28559920"}}