{"action":"opened","issue":{"url":"https://api.github.com/repos/npm/npm/issues/9916","labels_url":"https://api.github.com/repos/npm/npm/issues/9916/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/9916/comments","events_url":"https://api.github.com/repos/npm/npm/issues/9916/events","html_url":"https://github.com/npm/npm/issues/9916","id":110603299,"number":9916,"title":"npm install <folder> fails if preinstall-script has npm uninstall <folder> with npm@3.3.6","user":{"login":"hacker112","id":620746,"avatar_url":"https://avatars.githubusercontent.com/u/620746?v=3","gravatar_id":"","url":"https://api.github.com/users/hacker112","html_url":"https://github.com/hacker112","followers_url":"https://api.github.com/users/hacker112/followers","following_url":"https://api.github.com/users/hacker112/following{/other_user}","gists_url":"https://api.github.com/users/hacker112/gists{/gist_id}","starred_url":"https://api.github.com/users/hacker112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacker112/subscriptions","organizations_url":"https://api.github.com/users/hacker112/orgs","repos_url":"https://api.github.com/users/hacker112/repos","events_url":"https://api.github.com/users/hacker112/events{/privacy}","received_events_url":"https://api.github.com/users/hacker112/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-09T07:37:21Z","updated_at":"2015-10-09T07:37:21Z","closed_at":null,"body":"Problem in version: 3.3.6\r\nWorked fine in version: 2.11.3\r\n\r\nWhen working with servers that should not have direct access to the git-repos we use git-submodules sync them to the servers and use local folders to install them as npm packages. (through  \"npm install --save path/to/submodule\" )\r\n\r\nSince installing local submodules is only done once and we need to make sure that the package is refreshed each time \"npm install\" is run. We added preinstall script like this:\r\n\r\n```json\r\n  \"scripts\": {\r\n    \"preinstall\": \"npm uninstall path/to/submodule\"\r\n  }\r\n```\r\n\r\nThis works fine npm 2 where it uninstalls the package and then reinstalls it. \r\nIn npm 3 it fails to install the package at all when the preinstall script is there."}}