{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7862","labels_url":"https://api.github.com/repos/npm/npm/issues/7862/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7862/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7862/events","html_url":"https://github.com/npm/npm/issues/7862","id":66611054,"number":7862,"title":"npm hangs on npm install, but works if debug enabled","user":{"login":"busches","id":857700,"avatar_url":"https://avatars.githubusercontent.com/u/857700?v=3","gravatar_id":"","url":"https://api.github.com/users/busches","html_url":"https://github.com/busches","followers_url":"https://api.github.com/users/busches/followers","following_url":"https://api.github.com/users/busches/following{/other_user}","gists_url":"https://api.github.com/users/busches/gists{/gist_id}","starred_url":"https://api.github.com/users/busches/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busches/subscriptions","organizations_url":"https://api.github.com/users/busches/orgs","repos_url":"https://api.github.com/users/busches/repos","events_url":"https://api.github.com/users/busches/events{/privacy}","received_events_url":"https://api.github.com/users/busches/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"},{"url":"https://api.github.com/repos/npm/npm/labels/repro-please","name":"repro-please","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":87,"created_at":"2015-04-06T13:54:12Z","updated_at":"2015-09-16T11:23:58Z","closed_at":null,"body":"I'm using npm 2.7.4 with nodejs v0.12.2 on Windows 7x64 and I'm running into an odd issue. With the below package.json, when running `npm install` the process will hang after it runs `node-gyp` for `ws` for `karma`. But if I run `npm install -ddd` then it doesn't hang and installs correctly. \r\n\r\n```json\r\n{\r\n  \"name\": \"npmBug\",\r\n  \"version\": \"0.0.0\",\r\n  \"dependencies\": {},\r\n  \"devDependencies\": {\r\n    \"browser-sync\": \"~1.7.1\",\r\n    \"karma\": \"^0.12.31\"\r\n  }\r\n}\r\n```\r\n\r\nIf I run with just `npm install -dd` then it hangs at this line:\r\n```\r\nnpm info install karma@0.12.31\r\nnpm info postinstall karma@0.12.31\r\nnpm verb unlock done using C:\\Users\\buschs1\\AppData\\Roaming\\npm-cache\\_locks\\karma-f090bd27423c129a.lock for C:\\Users\\buschs1\\Desktop\\npmBug\\node_modules\\karma\r\n```\r\nI'm able to reproduce this on another machine (same setup, node, Win7x64, but doesn't have python, etc. setup for node-gyp) and it happens when using io.js v1.6.3 as well. Since it does install when changing logging settings in npm, I've opened the issue against npm, let me know if it belongs elsewhere. Please let me know if you need anymore information."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/140711984","html_url":"https://github.com/npm/npm/issues/7862#issuecomment-140711984","issue_url":"https://api.github.com/repos/npm/npm/issues/7862","id":140711984,"user":{"login":"fabiosussetto","id":103664,"avatar_url":"https://avatars.githubusercontent.com/u/103664?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiosussetto","html_url":"https://github.com/fabiosussetto","followers_url":"https://api.github.com/users/fabiosussetto/followers","following_url":"https://api.github.com/users/fabiosussetto/following{/other_user}","gists_url":"https://api.github.com/users/fabiosussetto/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosussetto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosussetto/subscriptions","organizations_url":"https://api.github.com/users/fabiosussetto/orgs","repos_url":"https://api.github.com/users/fabiosussetto/repos","events_url":"https://api.github.com/users/fabiosussetto/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosussetto/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T11:23:58Z","updated_at":"2015-09-16T11:23:58Z","body":"Experiencing the same problem within a Docker container (node:0.12.7-wheezy). Outside of the container, npm install works fine.\r\nI think I solved the issue by doing \r\n```\r\nRUN npm install -g node-gyp\r\n```\r\nbefore npm install. \r\n\r\nI got the idea from this post: http://gangmax.me/blog/2013/05/13/resolve-npm-update-node-gyp-hung-problem/"}}