title: npm WARN tar ENOENT: no such file or directory on Azure Build Pipeline
body: <p>The build pipeline on on Azure DevOps is failing and it failed on the <code>npm install</code> task. When I do <code>npm install</code> locally, it builds successfully. What's even more weird is that for the most recent build fail on azure build pipeline, the code change does not include any javascript or typescript related code. The build definition did not get modified either.</p>
  <p>Here's the error message:</p>
  <pre><code>{
  &quot;success&quot;: &quot;false&quot;,
  &quot;error&quot;: &quot;BadRequest&quot;,
  &quot;reason&quot;: &quot;For security reasons, an upstream package cannot be downloaded from a browser. Please use an official Npm client.&quot;,
  &quot;innerException&quot;: null,
  &quot;message&quot;: &quot;For security reasons, an upstream package cannot be downloaded from a browser. Please use an official Npm client.&quot;,
  &quot;typeName&quot;: &quot;Microsoft.VisualStudio.Services.Packaging.Shared.WebApi.Exceptions.PotentiallyDangerousRequestException, Microsoft.VisualStudio.Services.Packaging.Shared.WebApi, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot;,
  &quot;typeKey&quot;: &quot;PotentiallyDangerousRequestException&quot;,
  &quot;errorCode&quot;: 0,
  &quot;eventId&quot;: 3000
  }
  
  npm WARN tar ENOENT: no such file or directory, open 'root\node_modules\.staging\moment-c2892a41\dist\locale\lo.js'
  npm WARN tar ENOENT: no such file or directory, open 'root\node_modules\.staging\moment-c2892a41\locale\lo.js'
  npm WARN tar ENOENT: no such file or directory, open 'root\node_modules\.staging\moment-c2892a41\src\locale\lo.js'
  npm WARN tar ENOENT: no such file or directory, open 'root\node_modules\.staging\moment-c2892a41\src\lib\create\local.js'
  npm WARN tar ENOENT: no such file or directory, open 'root\node_modules\.staging\moment-c2892a41\src\lib\locale\locale.js'
  npm WARN tar ENOENT: no such file or directory, open 'root\node_modules\.staging\moment-c2892a41\src\lib\moment\locale.js'
  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current: {&quot;os&quot;:&quot;win32&quot;,&quot;arch&quot;:&quot;x64&quot;})
  npm WARN ngx-infinite-scroll@0.8.4 requires a peer of @angular/common@&gt;= 4.0.0 but none is installed. You must install peer dependencies yourself.
  npm WARN ngx-infinite-scroll@0.8.4 requires a peer of @angular/core@&gt;= 4.0.0 but none is installed. You must install peer dependencies yourself.
  </code></pre>
  <p>For the build pipeline, I am using Node 10.18.1. There's an npm authenticate .npmrc task before the npm install task.</p>