{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1205","repository_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks","labels_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1205/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1205/comments","events_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1205/events","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/1205","id":132596387,"number":1205,"title":"npm install fails when phantomjs package is a listed dependency - Please try running this command again as root/Administrator","user":{"login":"benlaan","id":1893285,"avatar_url":"https://avatars.githubusercontent.com/u/1893285?v=3","gravatar_id":"","url":"https://api.github.com/users/benlaan","html_url":"https://github.com/benlaan","followers_url":"https://api.github.com/users/benlaan/followers","following_url":"https://api.github.com/users/benlaan/following{/other_user}","gists_url":"https://api.github.com/users/benlaan/gists{/gist_id}","starred_url":"https://api.github.com/users/benlaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlaan/subscriptions","organizations_url":"https://api.github.com/users/benlaan/orgs","repos_url":"https://api.github.com/users/benlaan/repos","events_url":"https://api.github.com/users/benlaan/events{/privacy}","received_events_url":"https://api.github.com/users/benlaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-10T03:07:25Z","updated_at":"2016-02-11T02:56:26Z","closed_at":null,"body":"I am using phantomjs for testing, so it is part of my package.json. but when using a hosted agent, I get the following errors:\r\n\r\n```\r\n[command]C:\\Program Files\\nodejs\\npm.cmd install\r\n...\r\n> phantomjs-prebuilt@2.1.4 install C:\\a\\1\\s\\Client\\node_modules\\phantomjs-prebuilt\r\n> node install.js\r\nFound PhantomJS at C:\\NPM\\Modules\\phantomjs.CMD ...verifying\r\nWriting location.js file\r\nPhantomJS is already installed on PATH at C:\\NPM\\Modules\\phantomjs.CMD\r\nnpm ERR! Windows_NT 6.3.9600\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! path C:\\NPM\\Cache\\concat-map\\0.0.1\\package\\package.json\r\nnpm ERR! code EPERM\r\nnpm ERR! errno -4048\r\nnpm ERR! Error: EPERM, rename 'C:\\NPM\\Cache\\concat-map\\0.0.1\\package\\package.json'\r\nnpm ERR!     at Error (native)\r\nnpm ERR!  { [Error: EPERM, rename 'C:\\NPM\\Cache\\concat-map\\0.0.1\\package\\package.json']\r\nnpm ERR!   errno: -4048,\r\nnpm ERR!   code: 'EPERM',\r\nnpm ERR!   path: 'C:\\\\NPM\\\\Cache\\\\concat-map\\\\0.0.1\\\\package\\\\package.json',\r\nnpm ERR!   parent: 'brace-expansion' }\r\nnpm ERR! \r\nnpm ERR! Please try running this command again as root/Administrator.\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     C:\\a\\1\\s\\Client\\npm-debug.log\r\nNpm failed with error: C:\\Program Files\\nodejs\\npm.cmd failed with return code: 4294963248\r\n```\r\n\r\nObviously I am not an administrator on this machine. What should I do, assuming that I need phantomjs in my project?\r\n\r\nAlso, I don't have access to the machine in order to attach C:\\a\\1\\s\\Client\\npm-debug.log"},"comment":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/comments/182679215","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/1205#issuecomment-182679215","issue_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/1205","id":182679215,"user":{"login":"benlaan","id":1893285,"avatar_url":"https://avatars.githubusercontent.com/u/1893285?v=3","gravatar_id":"","url":"https://api.github.com/users/benlaan","html_url":"https://github.com/benlaan","followers_url":"https://api.github.com/users/benlaan/followers","following_url":"https://api.github.com/users/benlaan/following{/other_user}","gists_url":"https://api.github.com/users/benlaan/gists{/gist_id}","starred_url":"https://api.github.com/users/benlaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlaan/subscriptions","organizations_url":"https://api.github.com/users/benlaan/orgs","repos_url":"https://api.github.com/users/benlaan/repos","events_url":"https://api.github.com/users/benlaan/events{/privacy}","received_events_url":"https://api.github.com/users/benlaan/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T02:56:26Z","updated_at":"2016-02-11T02:56:26Z","body":"@ericsciple are you saying I should use a custom agent? If so, I have that already. I use it for debugging my build process. But I intended on shutting it down and using hosted for convenience.\r\n\r\nWhat does --force mean? Is this an option for npm install? "}}