{"action":"created","issue":{"url":"https://api.github.com/repos/atom/apm/issues/322","repository_url":"https://api.github.com/repos/atom/apm","labels_url":"https://api.github.com/repos/atom/apm/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/atom/apm/issues/322/comments","events_url":"https://api.github.com/repos/atom/apm/issues/322/events","html_url":"https://github.com/atom/apm/issues/322","id":61077748,"number":322,"title":"Unable to install packages behind corporate proxy","user":{"login":"marcuslindfeldt","id":1422872,"avatar_url":"https://avatars.githubusercontent.com/u/1422872?v=3","gravatar_id":"","url":"https://api.github.com/users/marcuslindfeldt","html_url":"https://github.com/marcuslindfeldt","followers_url":"https://api.github.com/users/marcuslindfeldt/followers","following_url":"https://api.github.com/users/marcuslindfeldt/following{/other_user}","gists_url":"https://api.github.com/users/marcuslindfeldt/gists{/gist_id}","starred_url":"https://api.github.com/users/marcuslindfeldt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcuslindfeldt/subscriptions","organizations_url":"https://api.github.com/users/marcuslindfeldt/orgs","repos_url":"https://api.github.com/users/marcuslindfeldt/repos","events_url":"https://api.github.com/users/marcuslindfeldt/events{/privacy}","received_events_url":"https://api.github.com/users/marcuslindfeldt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/apm/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":90,"created_at":"2015-03-13T14:34:21Z","updated_at":"2016-02-04T11:53:17Z","closed_at":null,"body":"I get the following error when trying to install a package with apm behind a corporate proxy. \r\n\r\n```\r\n$ apm install linter\r\nInstalling linter to /home/marcuslt/.atom/packages \r\ngyp info it worked if it ends with ok\r\ngyp info using node-gyp@1.0.2\r\ngyp info using node@0.10.35 | linux | x64\r\ngyp http GET https://atom.io/download/atom-shell/v0.21.0/node-v0.21.0.tar.gz\r\ngyp WARN install got an error, rolling back install\r\ngyp ERR! install error \r\ngyp ERR! stack Error: tunneling socket could not be established, cause=Parse Error\r\ngyp ERR! stack     at ClientRequest.onError (/opt/atom/resources/app/apm/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:168:17)\r\ngyp ERR! stack     at ClientRequest.g (events.js:180:16)\r\ngyp ERR! stack     at ClientRequest.emit (events.js:95:17)\r\ngyp ERR! stack     at Socket.socketOnData (http.js:1593:9)\r\ngyp ERR! stack     at TCP.onread (net.js:528:27)\r\ngyp ERR! System Linux 3.13.0-46-generic\r\ngyp ERR! command \"/opt/atom/resources/app/apm/bin/node\" \"/opt/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"install\" \"--target=0.21.0\" \"--dist-url=https://atom.io/download/atom-shell\" \"--arch=x64\" \"--ensure\" \"--proxy=http://wwwproxy:3128/\"\r\ngyp ERR! cwd /home/marcuslt/.atom\r\ngyp ERR! node -v v0.10.35\r\ngyp ERR! node-gyp -v v1.0.2\r\ngyp ERR! not ok \r\n\r\n```\r\n\r\nAll proxy settings should be correct and it worked perfectly in earlier versions.\r\n\r\n```\r\n$ apm --version\r\napm  0.142.0\r\nnpm  2.5.1\r\nnode 0.10.35\r\npython 2.7.6\r\ngit 1.9.1\r\n```"},"comment":{"url":"https://api.github.com/repos/atom/apm/issues/comments/179788202","html_url":"https://github.com/atom/apm/issues/322#issuecomment-179788202","issue_url":"https://api.github.com/repos/atom/apm/issues/322","id":179788202,"user":{"login":"schmittr","id":2667575,"avatar_url":"https://avatars.githubusercontent.com/u/2667575?v=3","gravatar_id":"","url":"https://api.github.com/users/schmittr","html_url":"https://github.com/schmittr","followers_url":"https://api.github.com/users/schmittr/followers","following_url":"https://api.github.com/users/schmittr/following{/other_user}","gists_url":"https://api.github.com/users/schmittr/gists{/gist_id}","starred_url":"https://api.github.com/users/schmittr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmittr/subscriptions","organizations_url":"https://api.github.com/users/schmittr/orgs","repos_url":"https://api.github.com/users/schmittr/repos","events_url":"https://api.github.com/users/schmittr/events{/privacy}","received_events_url":"https://api.github.com/users/schmittr/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T11:53:17Z","updated_at":"2016-02-04T11:53:17Z","body":"Thanks @TedThiCo, worked for me as well! :+1: "}}