{"action":"created","issue":{"url":"https://api.github.com/repos/craigburke/karma-gradle/issues/2","labels_url":"https://api.github.com/repos/craigburke/karma-gradle/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/craigburke/karma-gradle/issues/2/comments","events_url":"https://api.github.com/repos/craigburke/karma-gradle/issues/2/events","html_url":"https://github.com/craigburke/karma-gradle/issues/2","id":123694684,"number":2,"title":"karmaDependencies fails to install phantomjs while behind auth-proxy","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-23T17:21:43Z","updated_at":"2015-12-29T18:06:02Z","closed_at":null,"body":"Unforntunately, according to https://github.com/Medium/phantomjs/issues/399 there are problems with phantomjs when behind a proxy. \r\n```\r\nStarting process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node''. Working directory: /home/schmittr/projects/eers-new/app Command: /home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node /home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/lib/node_modules/npm/bin/npm-cli.js install karma karma-phantomjs-launcher phantomjs karma-jasmine --silent\r\nSuccessfully started process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node''\r\n:app:karmaDependencies FAILED\r\n:app:karmaDependencies (Thread[Daemon worker Thread 3,5,main]) completed. Took 22.419 secs.\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':app:karmaDependencies'.\r\n> Process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node'' finished with non-zero exit value 1\r\n```\r\n\r\nThe installation of  karma karma-jasmine without phantomjs works though.\r\nThe installation of phantomjs/karma-phantomjs-launcher throws following error:\r\n```\r\n> phantomjs@1.9.19 install /home/schmittr/projects/eers-new/app/node_modules/phantomjs\r\n> node install.js\r\n\r\nInstall exited unexpectedly\r\nnpm ERR! Linux 4.1.15-1-MANJARO\r\nnpm ERR! argv \"/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node\" \"/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/lib/node_modules/npm/bin/npm-cli.js\" \"install\" \"phantomjs\"\r\nnpm ERR! node v4.2.3\r\nnpm ERR! npm  v2.14.7\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! phantomjs@1.9.19 install: `node install.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the phantomjs@1.9.19 install script 'node install.js'.\r\nnpm ERR! This is most likely a problem with the phantomjs package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node install.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls phantomjs\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /home/schmittr/projects/eers-new/app/npm-debug.log\r\n```"},"comment":{"url":"https://api.github.com/repos/craigburke/karma-gradle/issues/comments/167845359","html_url":"https://github.com/craigburke/karma-gradle/issues/2#issuecomment-167845359","issue_url":"https://api.github.com/repos/craigburke/karma-gradle/issues/2","id":167845359,"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":"2015-12-29T18:06:02Z","updated_at":"2015-12-29T18:06:02Z","body":"Yes, both env-vars are set. `http://user:pw@proxy:port`. I also tried it without the `http`\r\n\r\nHere the log file:\r\n\r\n[npm-debug.log.txt](https://github.com/craigburke/karma-gradle/files/74206/npm-debug.log.txt)\r\n"}}