{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/6855","labels_url":"https://api.github.com/repos/npm/npm/issues/6855/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/6855/comments","events_url":"https://api.github.com/repos/npm/npm/issues/6855/events","html_url":"https://github.com/npm/npm/issues/6855","id":51077169,"number":6855,"title":"/tmp files not cleaned up for shrinkwrapped packages","user":{"login":"ianbamforth","id":7094207,"avatar_url":"https://avatars.githubusercontent.com/u/7094207?v=3","gravatar_id":"","url":"https://api.github.com/users/ianbamforth","html_url":"https://github.com/ianbamforth","followers_url":"https://api.github.com/users/ianbamforth/followers","following_url":"https://api.github.com/users/ianbamforth/following{/other_user}","gists_url":"https://api.github.com/users/ianbamforth/gists{/gist_id}","starred_url":"https://api.github.com/users/ianbamforth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianbamforth/subscriptions","organizations_url":"https://api.github.com/users/ianbamforth/orgs","repos_url":"https://api.github.com/users/ianbamforth/repos","events_url":"https://api.github.com/users/ianbamforth/events{/privacy}","received_events_url":"https://api.github.com/users/ianbamforth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/feature-request","name":"feature-request","color":"ACE1AF"},{"url":"https://api.github.com/repos/npm/npm/labels/next-minor","name":"next-minor","color":"FF00FF"},{"url":"https://api.github.com/repos/npm/npm/labels/patch-welcome","name":"patch-welcome","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2014-12-05T09:10:21Z","updated_at":"2015-05-21T10:48:26Z","closed_at":null,"body":"It appears that `npm install` cleans out /tmp only if the package you're installing is not shrinkwrapped.\r\n\r\nTo test, I created a very basic package (with a single dependency), publish it as 'unwrapped', then wrap (using `npm shrinkwrap`) and rename as wrapped, and publish again.  `npm install unwrapped` results in a clean /tmp folder. `npm install wrapped` results in a npm-<rand> folder being left in /tmp.\r\n\r\nEither the code is wrong (i.e. the /tmp/npm-<rand> folder should be deleted) or the documentation needs updating to reflect the behaviour, preferably with an explanation as I can't think why they'd be treated differently!"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/104223682","html_url":"https://github.com/npm/npm/issues/6855#issuecomment-104223682","issue_url":"https://api.github.com/repos/npm/npm/issues/6855","id":104223682,"user":{"login":"nemisj","id":182848,"avatar_url":"https://avatars.githubusercontent.com/u/182848?v=3","gravatar_id":"","url":"https://api.github.com/users/nemisj","html_url":"https://github.com/nemisj","followers_url":"https://api.github.com/users/nemisj/followers","following_url":"https://api.github.com/users/nemisj/following{/other_user}","gists_url":"https://api.github.com/users/nemisj/gists{/gist_id}","starred_url":"https://api.github.com/users/nemisj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemisj/subscriptions","organizations_url":"https://api.github.com/users/nemisj/orgs","repos_url":"https://api.github.com/users/nemisj/repos","events_url":"https://api.github.com/users/nemisj/events{/privacy}","received_events_url":"https://api.github.com/users/nemisj/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T10:48:26Z","updated_at":"2015-05-21T10:48:26Z","body":"@kleini, that explains"}}