{"action":"opened","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7593","labels_url":"https://api.github.com/repos/npm/npm/issues/7593/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7593/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7593/events","html_url":"https://github.com/npm/npm/issues/7593","id":60617108,"number":7593,"title":"\"npm install\" reinstalls git dependencies every time","user":{"login":"rluba","id":4600573,"avatar_url":"https://avatars.githubusercontent.com/u/4600573?v=3","gravatar_id":"","url":"https://api.github.com/users/rluba","html_url":"https://github.com/rluba","followers_url":"https://api.github.com/users/rluba/followers","following_url":"https://api.github.com/users/rluba/following{/other_user}","gists_url":"https://api.github.com/users/rluba/gists{/gist_id}","starred_url":"https://api.github.com/users/rluba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rluba/subscriptions","organizations_url":"https://api.github.com/users/rluba/orgs","repos_url":"https://api.github.com/users/rluba/repos","events_url":"https://api.github.com/users/rluba/events{/privacy}","received_events_url":"https://api.github.com/users/rluba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-11T06:38:28Z","updated_at":"2015-03-11T06:38:28Z","closed_at":null,"body":"Whenever we run `npm install`, each dependency that is specified as a git URL (`\"some-module\": \"git+ssh://git@repo-url#v1.2.3\"`)  is fully removed and reinstalled. Is this intended behavior? If yes, can we avoid it somehow?\r\n\r\nWe started to notice this because some of the modules have native dependencies which causes multiple compile steps and _looong_ delays whenever we run `npm install`:\r\n\r\n```\r\n…\r\n> dtrace-provider@0.4.0 install some-project/node_modules/some-module/node_modules/restify/node_modules/dtrace-provider\r\n> node scripts/install.js\r\n\r\n \r\n> dtrace-provider@0.4.0 install some-project/node_modules/some-module/node_modules/bunyan/node_modules/dtrace-provider\r\n> node scripts/install.js\r\n\r\n \r\n> fsevents@0.3.5 install some-project/node_modules/some-module/node_modules/karma/node_modules/chokidar/node_modules/fsevents\r\n> node-gyp rebuild\r\n…\r\n```"}}