{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/7493","labels_url":"https://api.github.com/repos/npm/npm/issues/7493/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/7493/comments","events_url":"https://api.github.com/repos/npm/npm/issues/7493/events","html_url":"https://github.com/npm/npm/issues/7493","id":59306963,"number":7493,"title":"Why is stuff getting compiled every time?","user":{"login":"binarykitchen","id":177641,"avatar_url":"https://avatars.githubusercontent.com/u/177641?v=3","gravatar_id":"","url":"https://api.github.com/users/binarykitchen","html_url":"https://github.com/binarykitchen","followers_url":"https://api.github.com/users/binarykitchen/followers","following_url":"https://api.github.com/users/binarykitchen/following{/other_user}","gists_url":"https://api.github.com/users/binarykitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/binarykitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarykitchen/subscriptions","organizations_url":"https://api.github.com/users/binarykitchen/orgs","repos_url":"https://api.github.com/users/binarykitchen/repos","events_url":"https://api.github.com/users/binarykitchen/events{/privacy}","received_events_url":"https://api.github.com/users/binarykitchen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/support","name":"support","color":"FF91AF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-02-27T22:57:08Z","updated_at":"2015-03-02T07:53:44Z","closed_at":null,"body":"Whenever I have installed for example ws and run a `npm i` afterwards for whatever reason, ws is re-compiled again. Why? There is no need to compile it when the version matches:\r\n\r\n```\r\n$ npm i\r\n... \r\n> ws@0.6.5 install /var/www/videomail/staging/source/node_modules/websocket-stream/node_modules/ws\r\n> (node-gyp rebuild 2> builderror.log) || (exit 0)\r\n\r\nmake: Entering directory `/var/www/videomail/staging/source/node_modules/websocket-stream/node_modules/ws/build'\r\n  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o\r\n  SOLINK_MODULE(target) Release/obj.target/bufferutil.node\r\n  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished\r\n  COPY Release/bufferutil.node\r\n  CXX(target) Release/obj.target/validation/src/validation.o\r\n  SOLINK_MODULE(target) Release/obj.target/validation.node\r\n  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished\r\n  COPY Release/validation.node\r\nmake: Leaving directory `/var/www/videomail/staging/source/node_modules/websocket-stream/node_modules/ws/build'\r\n```\r\n\r\nIs there a workaround for that for better performance? Because I am running `npm i` when deploying things on the server.\r\n\r\n(this has been initially posted on https://github.com/websockets/ws/issues/461)"},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/76670719","html_url":"https://github.com/npm/npm/issues/7493#issuecomment-76670719","issue_url":"https://api.github.com/repos/npm/npm/issues/7493","id":76670719,"user":{"login":"binarykitchen","id":177641,"avatar_url":"https://avatars.githubusercontent.com/u/177641?v=3","gravatar_id":"","url":"https://api.github.com/users/binarykitchen","html_url":"https://github.com/binarykitchen","followers_url":"https://api.github.com/users/binarykitchen/followers","following_url":"https://api.github.com/users/binarykitchen/following{/other_user}","gists_url":"https://api.github.com/users/binarykitchen/gists{/gist_id}","starred_url":"https://api.github.com/users/binarykitchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binarykitchen/subscriptions","organizations_url":"https://api.github.com/users/binarykitchen/orgs","repos_url":"https://api.github.com/users/binarykitchen/repos","events_url":"https://api.github.com/users/binarykitchen/events{/privacy}","received_events_url":"https://api.github.com/users/binarykitchen/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T07:53:44Z","updated_at":"2015-03-02T07:53:44Z","body":"@iarna Grrrr ... somehow I am unable to reproduce this today. Something must have changed after my recent `npm update`. Weird. I'll keep an eye on this and will add more comments once I am able to reproduce this behavior."}}