{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/323","labels_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/323/comments","events_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/323/events","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/323","id":95023613,"number":323,"title":"npm install task (not msbuild) fails with EPERM on hosted build ","user":{"login":"rosieks","id":1107959,"avatar_url":"https://avatars.githubusercontent.com/u/1107959?v=3","gravatar_id":"","url":"https://api.github.com/users/rosieks","html_url":"https://github.com/rosieks","followers_url":"https://api.github.com/users/rosieks/followers","following_url":"https://api.github.com/users/rosieks/following{/other_user}","gists_url":"https://api.github.com/users/rosieks/gists{/gist_id}","starred_url":"https://api.github.com/users/rosieks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosieks/subscriptions","organizations_url":"https://api.github.com/users/rosieks/orgs","repos_url":"https://api.github.com/users/rosieks/repos","events_url":"https://api.github.com/users/rosieks/events{/privacy}","received_events_url":"https://api.github.com/users/rosieks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":83,"created_at":"2015-07-14T19:48:04Z","updated_at":"2015-11-20T15:11:40Z","closed_at":null,"body":"It looks like there are some problems with permissions while installing various packages over `npm install`.\r\n\r\nWhen I run my build for the 1st time I received the following errors:\r\n\r\n    npm ERR! Error: EPERM, open 'C:\\NPM\\Cache\\bb33797c-ache-minimatch-2-0-8-package-tgz.lock'\r\n    npm ERR! { [Error: EPERM, open 'C:\\NPM\\Cache\\bb33797c-ache-minimatch-2-0-8-package-tgz.lock']\r\n    npm ERR! errno: 50,\r\n    npm ERR! code: 'EPERM',\r\n    npm ERR! path: 'C:\\\\NPM\\\\Cache\\\\bb33797c-ache-minimatch-2-0-8-package-tgz.lock' }\r\n    npm ERR! \r\n\r\nAfter that I just run my build for the 2nd time without any modifications and I got the following errors:\r\n\r\n    npm ERR! Error: EPERM, open 'C:\\NPM\\Cache\\e360d466-Cache-inherits-2-0-1-package-tgz.lock'\r\n    npm ERR! { [Error: EPERM, open 'C:\\NPM\\Cache\\e360d466-Cache-inherits-2-0-1-package-tgz.lock']\r\n    npm ERR! errno: 50,\r\n    npm ERR! code: 'EPERM',\r\n    npm ERR! path: 'C:\\\\NPM\\\\Cache\\\\e360d466-Cache-inherits-2-0-1-package-tgz.lock' }\r\n    npm ERR! \r\n\r\nI receiving that errors on VSO"},"comment":{"url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/comments/158426820","html_url":"https://github.com/Microsoft/vso-agent-tasks/issues/323#issuecomment-158426820","issue_url":"https://api.github.com/repos/Microsoft/vso-agent-tasks/issues/323","id":158426820,"user":{"login":"tghamm","id":5253107,"avatar_url":"https://avatars.githubusercontent.com/u/5253107?v=3","gravatar_id":"","url":"https://api.github.com/users/tghamm","html_url":"https://github.com/tghamm","followers_url":"https://api.github.com/users/tghamm/followers","following_url":"https://api.github.com/users/tghamm/following{/other_user}","gists_url":"https://api.github.com/users/tghamm/gists{/gist_id}","starred_url":"https://api.github.com/users/tghamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tghamm/subscriptions","organizations_url":"https://api.github.com/users/tghamm/orgs","repos_url":"https://api.github.com/users/tghamm/repos","events_url":"https://api.github.com/users/tghamm/events{/privacy}","received_events_url":"https://api.github.com/users/tghamm/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T15:11:40Z","updated_at":"2015-11-20T15:11:40Z","body":"@bryanmacfarlane will do.  It's actually working intermittently now so I'm waiting for it to fail again."}}