{"action":"closed","issue":{"url":"https://api.github.com/repos/Medium/phantomjs/issues/325","labels_url":"https://api.github.com/repos/Medium/phantomjs/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/Medium/phantomjs/issues/325/comments","events_url":"https://api.github.com/repos/Medium/phantomjs/issues/325/events","html_url":"https://github.com/Medium/phantomjs/issues/325","id":65448294,"number":325,"title":"Installing phantomjs@1.9.16 fails on TeamCity","user":{"login":"liam-swinney","id":4599265,"avatar_url":"https://avatars.githubusercontent.com/u/4599265?v=3","gravatar_id":"","url":"https://api.github.com/users/liam-swinney","html_url":"https://github.com/liam-swinney","followers_url":"https://api.github.com/users/liam-swinney/followers","following_url":"https://api.github.com/users/liam-swinney/following{/other_user}","gists_url":"https://api.github.com/users/liam-swinney/gists{/gist_id}","starred_url":"https://api.github.com/users/liam-swinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liam-swinney/subscriptions","organizations_url":"https://api.github.com/users/liam-swinney/orgs","repos_url":"https://api.github.com/users/liam-swinney/repos","events_url":"https://api.github.com/users/liam-swinney/events{/privacy}","received_events_url":"https://api.github.com/users/liam-swinney/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-31T13:19:08Z","updated_at":"2015-04-10T09:27:25Z","closed_at":"2015-04-10T09:27:25Z","body":"Hey,\r\n\r\nWe are getting an issue when installing PhantomJS on our TeamCity agents.  ' Failed at the phantomjs@1.9.16 install script.'\r\n\r\nThis issue has been around for a while and we've been able to manage it by re running the build but now it is getting more frequent with about 4 fails to 1 success.  \r\n\r\nWe have windows agents with PhantomJS installed globally, we clear the node modules on every build and runs the 'npm install' on every build.  (I cannot understand why it is installed globally but it still needs to be downloaded) \r\n\r\nWe've tried to debug this locally but cannot as it is successful everytime, the only thing I can do is provide the error response:\r\n\r\n```html\r\n[11:10:51][Step 3/12] > phantomjs@1.9.16 install C:\\BuildAgent2\\work\\7ea1530d04a43808\\src\\FrontendBuildTasks\\node_modules\\karma-phantomjs-launcher\\node_modules\\phantomjs\r\n[11:10:51][Step 3/12] > node install.js\r\n[11:10:51][Step 3/12] Looks like an `npm install -g` on windows; unable to check for already installed version.\r\n[11:10:51][Step 3/12] Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-windows.zip\r\n[11:10:52][Step 3/12] Saving to C:\\BuildAgent2\\temp\\buildTmp\\phantomjs\\phantomjs-1.9.8-windows.zip\r\n[11:10:52][Step 3/12] Receiving...\r\n\r\n[11:11:01][Step 3/12] Received 7292K total.\r\n[11:11:01][Step 3/12] Extracting zip contents\r\n[11:11:01][Step 3/12] Removing E:\\Agent 02\\work\\7ea1530d04a43808\\src\\FrontendBuildTasks\\node_modules\\karma-phantomjs-launcher\\node_modules\\phantomjs\\lib\\phantom\r\n[11:11:01][Step 3/12] Copying extracted folder C:\\BuildAgent2\\temp\\buildTmp\\phantomjs\\phantomjs-1.9.8-windows.zip-extract-1427368259546\\phantomjs-1.9.8-windows -> E:\\Agent 02\\work\\7ea1530d04a43808\\src\\FrontendBuildTasks\\node_modules\\karma-phantomjs-launcher\\node_modules\\phantomjs\\lib\\phantom\r\n\r\n\r\n[11:11:05][Step 3/12] npm ERR! phantomjs@1.9.16 install: `node install.js`\r\n[11:11:05][Step 3/12] npm ERR! Exit status 1\r\n[11:11:05][Step 3/12] npm ERR! \r\n[11:11:05][Step 3/12] npm ERR! Failed at the phantomjs@1.9.16 install script.\r\n[11:11:05][Step 3/12] npm ERR! This is most likely a problem with the phantomjs package,\r\n[11:11:05][Step 3/12] npm ERR! not with npm itself.\r\n[11:11:05][Step 3/12] npm ERR! Tell the author that this fails on your system:\r\n[11:11:05][Step 3/12] npm ERR!     node install.js\r\n[11:11:05][Step 3/12] npm ERR! You can get their info via:\r\n[11:11:05][Step 3/12] npm ERR!     npm owner ls phantomjs\r\n[11:11:05][Step 3/12] npm ERR! There is likely additional logging output above.\r\n[11:11:05][Step 3/12] \r\n[11:11:05][Step 3/12] npm ERR! System Windows_NT 6.1.7601\r\n[11:11:05][Step 3/12] npm ERR! command \"C:\\\\Program Files\\\\nodejs\\\\\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\"\r\n[11:11:05][Step 3/12] npm ERR! cwd C:\\BuildAgent2\\work\\7ea1530d04a43808\\src\\FrontendBuildTasks\r\n[11:11:05][Step 3/12] npm ERR! node -v v0.10.24\r\n[11:11:05][Step 3/12] npm ERR! npm -v 1.3.21\r\n[11:11:05][Step 3/12] npm ERR! code ELIFECYCLE\r\n```\r\n\r\nLet me know if you need anymore info!\r\n\r\nThanks\r\n\r\nLiam"}}