{"action":"opened","issue":{"url":"https://api.github.com/repos/tj/n/issues/236","labels_url":"https://api.github.com/repos/tj/n/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/tj/n/issues/236/comments","events_url":"https://api.github.com/repos/tj/n/issues/236/events","html_url":"https://github.com/tj/n/issues/236","id":60165370,"number":236,"title":"Previous node version is causing side effects.","user":{"login":"smussell","id":90569,"avatar_url":"https://avatars.githubusercontent.com/u/90569?v=3","gravatar_id":"","url":"https://api.github.com/users/smussell","html_url":"https://github.com/smussell","followers_url":"https://api.github.com/users/smussell/followers","following_url":"https://api.github.com/users/smussell/following{/other_user}","gists_url":"https://api.github.com/users/smussell/gists{/gist_id}","starred_url":"https://api.github.com/users/smussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smussell/subscriptions","organizations_url":"https://api.github.com/users/smussell/orgs","repos_url":"https://api.github.com/users/smussell/repos","events_url":"https://api.github.com/users/smussell/events{/privacy}","received_events_url":"https://api.github.com/users/smussell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T22:03:13Z","updated_at":"2015-03-06T22:03:13Z","closed_at":null,"body":"Under some circumstances n is causing my npm install from github to fail.  I've tried on my machine and also a colleagues machine so it is reproducible.  This is happening under Mac os 10.10.3 I have the following package.json\r\n\r\n```\r\n{\r\n  \"name\": \"test\",\r\n  \"description\": \"test\",\r\n  \"version\": \"0.0.1\",\r\n  \"private\": true,\r\n  \"keywords\": \"\",\r\n  \"dependencies\": {\r\n    \"react-grid-layout\": \"git+https://github.com/STRML/react-grid-layout.git\"\r\n\r\n  }\r\n}\r\n```\r\n\r\nand I see the following error:\r\n\r\n```\r\nnpm ERR! fetch failed https://github.com/strml/react-draggable\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 406\r\nnpm ERR! fetch failed https://github.com/strml/react-draggable\r\nnpm WARN retry will retry, error on last attempt: Error: fetch failed with status code 406\r\nnpm ERR! fetch failed https://github.com/strml/react-draggable\r\nnpm ERR! Darwin 14.3.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"install\"\r\nnpm ERR! node v0.12.0\r\nnpm ERR! npm  v2.5.1\r\n\r\nnpm ERR! fetch failed with status code 406\r\n```\r\n\r\nSo my steps to reproduce are:\r\n\r\n 1. brew install node\r\n 1. npm install // works fine\r\n 1. npm install -g n\r\n 1. n 0.10.26\r\n 1. npm install // works fine\r\n 1. n 0.12.0\r\n 1. npm install // I see the above error\r\n\r\nWhat's strange is that if I replace step 4 with n 0.10.36 all is fine. Something about having previously installed .26 is causing the issue, it seems then that something is not being cleaned up properly when switching versions."}}