<h3 dir="auto">Current Behavior:</h3>

<h3 dir="auto">Expected Behavior:</h3>

<h3 dir="auto">Steps To Reproduce:</h3>

<p dir="auto">NPM can not install updates<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/27654200/107869231-ce615f80-6ec6-11eb-968e-e5e07d82f1a1.png"><img src="https://user-images.githubusercontent.com/27654200/107869231-ce615f80-6ec6-11eb-968e-e5e07d82f1a1.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Environment:</h3>

<p dir="auto">OS：Window10<br>
Node：v14.15.4</p>
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">Installing latest npm version when on 7.5.3 generates an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm -v
7.5.3"><pre class="notranslate"><code class="notranslate">npm -v
7.5.3
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm i -g npm
npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:\Program Files\nodejs\node_modules\npm
npm ERR! dest C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\npm' -&gt; 'C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N'
npm ERR!  [Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\npm' -&gt; 'C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N'] {
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'rename',
npm ERR!   path: 'C:\\Program Files\\nodejs\\node_modules\\npm',
npm ERR!   dest: 'C:\\Program Files\\nodejs\\node_modules\\.npm-QXjMEw5N'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator."><pre class="notranslate"><code class="notranslate">npm i -g npm
npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:\Program Files\nodejs\node_modules\npm
npm ERR! dest C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\npm' -&gt; 'C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N'
npm ERR!  [Error: EPERM: operation not permitted, rename 'C:\Program Files\nodejs\node_modules\npm' -&gt; 'C:\Program Files\nodejs\node_modules\.npm-QXjMEw5N'] {
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'rename',
npm ERR!   path: 'C:\\Program Files\\nodejs\\node_modules\\npm',
npm ERR!   dest: 'C:\\Program Files\\nodejs\\node_modules\\.npm-QXjMEw5N'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
</code></pre></div>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">npm should be installed globally without error. If 7.5.3 is (still) the latest version, no change occurs</p>
<h3 dir="auto">Steps To Reproduce:</h3>

<ol dir="auto">
<li>Windows 10 x64 environment with node 14.5.4 and npm 7.5.3 installed</li>
<li>Run <code class="notranslate">npm i -g npm</code></li>
<li>See error with regard to renaming a file</li>
</ol>
<h3 dir="auto">Environment:</h3>

<p dir="auto">OS: Windows 10 x64<br>
Node: 14.5.4<br>
npm: 7.5.3</p>