{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/6657","repository_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks","labels_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/6657/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/6657/comments","events_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/6657/events","html_url":"https://github.com/Microsoft/azure-pipelines-tasks/issues/6657","id":303903538,"node_id":"MDU6SXNzdWUzMDM5MDM1Mzg=","number":6657,"title":"npm.cmd failed with return code: 4294963238","user":{"login":"bussemac","id":842344,"node_id":"MDQ6VXNlcjg0MjM0NA==","avatar_url":"https://avatars1.githubusercontent.com/u/842344?v=4","gravatar_id":"","url":"https://api.github.com/users/bussemac","html_url":"https://github.com/bussemac","followers_url":"https://api.github.com/users/bussemac/followers","following_url":"https://api.github.com/users/bussemac/following{/other_user}","gists_url":"https://api.github.com/users/bussemac/gists{/gist_id}","starred_url":"https://api.github.com/users/bussemac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bussemac/subscriptions","organizations_url":"https://api.github.com/users/bussemac/orgs","repos_url":"https://api.github.com/users/bussemac/repos","events_url":"https://api.github.com/users/bussemac/events{/privacy}","received_events_url":"https://api.github.com/users/bussemac/received_events","type":"User","site_admin":false},"labels":[{"id":407006537,"node_id":"MDU6TGFiZWw0MDcwMDY1Mzc=","url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/labels/Area:%20Packaging","name":"Area: Packaging","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"alexmullans","id":483400,"node_id":"MDQ6VXNlcjQ4MzQwMA==","avatar_url":"https://avatars1.githubusercontent.com/u/483400?v=4","gravatar_id":"","url":"https://api.github.com/users/alexmullans","html_url":"https://github.com/alexmullans","followers_url":"https://api.github.com/users/alexmullans/followers","following_url":"https://api.github.com/users/alexmullans/following{/other_user}","gists_url":"https://api.github.com/users/alexmullans/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmullans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmullans/subscriptions","organizations_url":"https://api.github.com/users/alexmullans/orgs","repos_url":"https://api.github.com/users/alexmullans/repos","events_url":"https://api.github.com/users/alexmullans/events{/privacy}","received_events_url":"https://api.github.com/users/alexmullans/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexmullans","id":483400,"node_id":"MDQ6VXNlcjQ4MzQwMA==","avatar_url":"https://avatars1.githubusercontent.com/u/483400?v=4","gravatar_id":"","url":"https://api.github.com/users/alexmullans","html_url":"https://github.com/alexmullans","followers_url":"https://api.github.com/users/alexmullans/followers","following_url":"https://api.github.com/users/alexmullans/following{/other_user}","gists_url":"https://api.github.com/users/alexmullans/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmullans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmullans/subscriptions","organizations_url":"https://api.github.com/users/alexmullans/orgs","repos_url":"https://api.github.com/users/alexmullans/repos","events_url":"https://api.github.com/users/alexmullans/events{/privacy}","received_events_url":"https://api.github.com/users/alexmullans/received_events","type":"User","site_admin":false}],"milestone":null,"comments":20,"created_at":"2018-03-09T16:42:44Z","updated_at":"2018-12-06T18:57:40Z","closed_at":null,"author_association":"NONE","body":"## Environment\r\n- Server - VSTS\r\n account name: DartContainer\r\n team project name: Web Development\r\n build definition name/build number: OTC Portals CI 2.0 / 6.28.1-beta.0 \r\n\r\n- Hosted Agent - Hosted VS2017\r\n    \r\n## Issue Description\r\n\r\nnpm task, install command, version 1.x\r\n\r\nTransient failures (frequent all morning if you look at our other builds) installing NPM packages. Always fails with the return code listed above. NPM version is 5.6.0 which is what ships with Node 8.10.\r\n\r\nIf you're very very lucky, queueing the build again may fix the problem, because it's a transient failure.\r\n\r\nThere seems to be a known issue about this from a while ago, but which is reported fixed. (See #1205 and #323).\r\n\r\n### Error logs\r\n(Project path names have been sanitized.)\r\n\r\n```\r\n2018-03-09T16:12:43.5340151Z ##[section]Starting: npm install SP\r\n2018-03-09T16:12:43.5344840Z ==============================================================================\r\n2018-03-09T16:12:43.5345158Z Task         : npm\r\n2018-03-09T16:12:43.5345463Z Description  : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Package Management.\r\n2018-03-09T16:12:43.5345965Z Version      : 1.0.10\r\n2018-03-09T16:12:43.5346184Z Author       : Microsoft Corporation\r\n2018-03-09T16:12:43.5346448Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613746)\r\n2018-03-09T16:12:43.5346756Z ==============================================================================\r\n2018-03-09T16:12:43.9821935Z [command]C:\\Windows\\system32\\cmd.exe /D /S /C \"D:\\a\\_tool\\node\\8.10.0\\x64\\npm.cmd --version\"\r\n2018-03-09T16:12:44.8161801Z 5.6.0\r\n2018-03-09T16:12:46.4171194Z [command]C:\\Windows\\system32\\cmd.exe /D /S /C \"D:\\a\\_tool\\node\\8.10.0\\x64\\npm.cmd config list\"\r\n2018-03-09T16:12:47.2913966Z ; cli configs\r\n2018-03-09T16:12:47.2914588Z metrics-registry = \"https://registry.npmjs.org/\"\r\n2018-03-09T16:12:47.2914907Z scope = \"\"\r\n2018-03-09T16:12:47.2915175Z user-agent = \"npm/5.6.0 node/v8.10.0 win32 x64\"\r\n2018-03-09T16:12:47.2915346Z \r\n2018-03-09T16:12:47.2915570Z ; environment configs\r\n2018-03-09T16:12:47.2915814Z cache = \"C:\\\\npm\\\\cache\"\r\n2018-03-09T16:12:47.2916056Z prefix = \"C:\\\\npm\\\\prefix\"\r\n2018-03-09T16:12:47.2916315Z userconfig = \"D:\\\\a\\\\1\\\\npm\\\\7210.npmrc\"\r\n2018-03-09T16:12:47.2916500Z \r\n2018-03-09T16:12:47.2916733Z ; node bin location = D:\\a\\_tool\\node\\8.10.0\\x64\\node.exe\r\n2018-03-09T16:12:47.2917022Z ; cwd = D:\\a\\1\\s\\MyProject\\MyProject.Web\r\n2018-03-09T16:12:47.2917294Z ; HOME = C:\\Users\\VssAdministrator\r\n2018-03-09T16:12:47.2917534Z ; \"npm config ls -l\" to show all defaults.\r\n2018-03-09T16:12:47.2917708Z \r\n2018-03-09T16:12:47.2919963Z [command]C:\\Windows\\system32\\cmd.exe /D /S /C \"D:\\a\\_tool\\node\\8.10.0\\x64\\npm.cmd install\"\r\n2018-03-09T16:13:15.4313059Z npm WARN dartportal-otc@1.0.0 No description\r\n2018-03-09T16:13:15.4354603Z npm WARN dartportal-otc@1.0.0 No repository field.\r\n2018-03-09T16:13:15.4921431Z npm WARN dartportal-otc@1.0.0 No license field.\r\n2018-03-09T16:13:15.4921600Z \r\n2018-03-09T16:13:15.4922060Z npm ERR! path D:\\a\\1\\s\\MyProject\\MyProject.Web\\node_modules\\requirejs\\bin\\r.js.3170253953\r\n2018-03-09T16:13:15.4922328Z npm ERR! code EPERM\r\n2018-03-09T16:13:15.4922524Z npm ERR! errno -4048\r\n2018-03-09T16:13:15.4922722Z npm ERR! syscall rename\r\n2018-03-09T16:13:15.4923255Z npm ERR! Error: EPERM: operation not permitted, rename 'D:\\a\\1\\s\\MyProject\\MyProject.Web\\node_modules\\requirejs\\bin\\r.js.3170253953' -> 'D:\\a\\1\\s\\MyProject\\MyProject.Web\\node_modules\\requirejs\\bin\\r.js'\r\n2018-03-09T16:13:15.4924728Z npm ERR!  { Error: EPERM: operation not permitted, rename 'D:\\a\\1\\s\\MyProject\\MyProject.Web\\node_modules\\requirejs\\bin\\r.js.3170253953' -> 'D:\\a\\1\\s\\MyProject\\MyProject.Web\\node_modules\\requirejs\\bin\\r.js'\r\n2018-03-09T16:13:15.4925459Z npm ERR!   cause: \r\n2018-03-09T16:13:15.4925922Z npm ERR!    { Error: EPERM: operation not permitted, rename 'D:\\a\\1\\s\\MyProject\\MyProject.Web\\node_modules\\requirejs\\bin\\r.js.3170253953' -> 'D:\\a\\1\\s\\MyProject\\MyProject.Web\\node_modules\\requirejs\\bin\\r.js'\r\n2018-03-09T16:13:15.4926387Z npm ERR!      errno: -4048,\r\n2018-03-09T16:13:15.4926644Z npm ERR!      code: 'EPERM',\r\n2018-03-09T16:13:15.4926888Z npm ERR!      syscall: 'rename',\r\n2018-03-09T16:13:15.4927243Z npm ERR!      path: 'D:\\\\a\\\\1\\\\s\\\\MyProject\\\\MyProject.Web\\\\node_modules\\\\requirejs\\\\bin\\\\r.js.3170253953',\r\n2018-03-09T16:13:15.4927830Z npm ERR!      dest: 'D:\\\\a\\\\1\\\\s\\\\MyProject\\\\MyProject.Web\\\\node_modules\\\\requirejs\\\\bin\\\\r.js' },\r\n2018-03-09T16:13:15.4928274Z npm ERR!   stack: 'Error: EPERM: operation not permitted, rename \\'D:\\\\a\\\\1\\\\s\\\\MyProject\\\\MyProject.Web\\\\node_modules\\\\requirejs\\\\bin\\\\r.js.3170253953\\' -> \\'D:\\\\a\\\\1\\\\s\\\\MyProject\\\\MyProject.Web\\\\node_modules\\\\requirejs\\\\bin\\\\r.js\\'',\r\n2018-03-09T16:13:15.4929651Z npm ERR!   errno: -4048,\r\n2018-03-09T16:13:15.4929962Z npm ERR!   code: 'EPERM',\r\n2018-03-09T16:13:15.4930151Z npm ERR!   syscall: 'rename',\r\n2018-03-09T16:13:15.4930429Z npm ERR!   path: 'D:\\\\a\\\\1\\\\s\\\\MyProject\\\\MyProject.Web\\\\node_modules\\\\requirejs\\\\bin\\\\r.js.3170253953',\r\n2018-03-09T16:13:15.4930764Z npm ERR!   dest: 'D:\\\\a\\\\1\\\\s\\\\MyProject\\\\MyProject.Web\\\\node_modules\\\\requirejs\\\\bin\\\\r.js',\r\n2018-03-09T16:13:15.4931414Z npm ERR!   parent: 'dartportal-otc' }\r\n2018-03-09T16:13:15.4931803Z npm ERR! \r\n2018-03-09T16:13:15.4932453Z npm ERR! Please try running this command again as root/Administrator.\r\n2018-03-09T16:13:15.4932633Z \r\n2018-03-09T16:13:15.4932855Z npm ERR! A complete log of this run can be found in:\r\n2018-03-09T16:13:15.4933153Z npm ERR!     C:\\npm\\cache\\_logs\\2018-03-09T16_13_15_368Z-debug.log\r\n2018-03-09T16:13:15.4937658Z Found npm debug log, make sure the path matches with the one in npm's output: C:\\npm\\cache\\_logs\\2018-03-09T16_13_15_368Z-debug.log\r\n2018-03-09T16:13:15.4938129Z 0 info it worked if it ends with ok\r\n2018-03-09T16:13:15.4938365Z 1 verbose cli [ 'D:\\\\a\\\\_tool\\\\node\\\\8.10.0\\\\x64\\\\node.exe',\r\n2018-03-09T16:13:15.4938639Z 1 verbose cli   'D:\\\\a\\\\_tool\\\\node\\\\8.10.0\\\\x64\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js',\r\n2018-03-09T16:13:15.4938888Z 1 verbose cli   'install' ]\r\n2018-03-09T16:13:15.4939074Z 2 info using npm@5.6.0\r\n2018-03-09T16:13:15.4939272Z 3 info using node@v8.10.0\r\n2018-03-09T16:13:15.4939472Z 4 verbose npm-session 46648d3d26ad6162\r\n2018-03-09T16:13:15.4939699Z 5 silly install runPreinstallTopLevelLifecycles\r\n2018-03-09T16:13:15.4939914Z 6 silly preinstall dartportal-otc@1.0.0\r\n2018-03-09T16:13:15.4940154Z 7 info lifecycle dartportal-otc@1.0.0~preinstall: dartportal-otc@1.0.0\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/comments/444987362","html_url":"https://github.com/Microsoft/azure-pipelines-tasks/issues/6657#issuecomment-444987362","issue_url":"https://api.github.com/repos/Microsoft/azure-pipelines-tasks/issues/6657","id":444987362,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDk4NzM2Mg==","user":{"login":"zjrunner","id":1724619,"node_id":"MDQ6VXNlcjE3MjQ2MTk=","avatar_url":"https://avatars0.githubusercontent.com/u/1724619?v=4","gravatar_id":"","url":"https://api.github.com/users/zjrunner","html_url":"https://github.com/zjrunner","followers_url":"https://api.github.com/users/zjrunner/followers","following_url":"https://api.github.com/users/zjrunner/following{/other_user}","gists_url":"https://api.github.com/users/zjrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/zjrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zjrunner/subscriptions","organizations_url":"https://api.github.com/users/zjrunner/orgs","repos_url":"https://api.github.com/users/zjrunner/repos","events_url":"https://api.github.com/users/zjrunner/events{/privacy}","received_events_url":"https://api.github.com/users/zjrunner/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T18:57:40Z","updated_at":"2018-12-06T18:57:40Z","author_association":"MEMBER","body":"I see 5.6 is in play here, has anyone found a newer thread than this: https://github.com/npm/npm/issues/17671 -- looks like there was a known npm race they thought they fixed as of 5.6 that may still be there.  I see many others on there even more recent with the same error, some publish some restore, not much comment from the npm contributors."}}
{"actor":{"display_login":"zjrunner"}}