<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">While running npm scripts, npm logs <code class="notranslate">timing config:load:flatten completed in 1/2ms</code> (The 1/2ms isnt what it actually logs, rather it flickers between 1ms and 2ms).</p>
<p dir="auto">This only happens when I have a <code class="notranslate">.npmrc</code> file in the package root. npm also says <code class="notranslate">npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc</code> before starting my script.</p>
<p dir="auto">While this does not prevent me from typing (as far as I can tell), I can't see my input nor is it really ideal for my terminal to do this. I also noticed a significant slowdown installing packages (part of my script has to run npm i -D "a bunch of packages"), although this could be a coincidence.</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

&gt; create-octobox-app@2.0.0 test
&gt; npm run elevate &amp;&amp; npm run build &amp;&amp; npm run install &amp;&amp; node test/main.test.js &amp;&amp; npm run clean

npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

&gt; create-octobox-app@2.0.0 elevate
&gt; sudo echo '' || exit 0

[sudo] password for thomas: (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten Completed in 2ms
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten Completed in 1ms
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

&gt; create-octobox-app@2.0.0 build
&gt; tsc --project tsconfig.json &amp;&amp; minify bin/index.max.js &gt; bin/index.js &amp;&amp; rimraf bin/index.max.js &amp;&amp; chmod u+x bin/index.js || exit 0

npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

&gt; create-octobox-app@2.0.0 install
&gt; npm run clean &amp;&amp; sudo npm link || npm link

npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

&gt; create-octobox-app@2.0.0 clean
&gt; sudo npm -g uninstall create-octobox-app || npm -g uninstall create-octobox-app


up to date, audited 1 package in 147ms

found 0 vulnerabilities
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

added 1 package, and audited 3 packages in 497ms

found 0 vulnerabilities
➤ Running tests...⠂) ⠙ : timing config:load:flatten Completed in 2ms
➤ Running test 1...) ⠙ : timing config:load:flatten Completed in 2ms"><pre class="notranslate">npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 <span class="pl-c1">test</span>
<span class="pl-k">&gt;</span> npm run elevate <span class="pl-k">&amp;&amp;</span> npm run build <span class="pl-k">&amp;&amp;</span> npm run install <span class="pl-k">&amp;&amp;</span> node test/main.test.js <span class="pl-k">&amp;&amp;</span> npm run clean

npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 elevate
<span class="pl-k">&gt;</span> sudo <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> <span class="pl-k">||</span> <span class="pl-c1">exit</span> 0

[sudo] password <span class="pl-k">for</span> <span class="pl-smi">thomas: (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten Completed</span> <span class="pl-k">in</span> 2ms
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ <span class="pl-c1">:</span> timing config:load:flatten Completed <span class="pl-k">in</span> 1ms
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 build
<span class="pl-k">&gt;</span> tsc --project tsconfig.json <span class="pl-k">&amp;&amp;</span> minify bin/index.max.js <span class="pl-k">&gt;</span> bin/index.js <span class="pl-k">&amp;&amp;</span> rimraf bin/index.max.js <span class="pl-k">&amp;&amp;</span> chmod u+x bin/index.js <span class="pl-k">||</span> <span class="pl-c1">exit</span> 0

npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 install
<span class="pl-k">&gt;</span> npm run clean <span class="pl-k">&amp;&amp;</span> sudo npm link <span class="pl-k">||</span> npm link

npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 clean
<span class="pl-k">&gt;</span> sudo npm -g uninstall create-octobox-app <span class="pl-k">||</span> npm -g uninstall create-octobox-app


up to date, audited 1 package <span class="pl-k">in</span> 147ms

found 0 vulnerabilities
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc 

added 1 package, and audited 3 packages <span class="pl-k">in</span> 497ms

found 0 vulnerabilities
➤ Running tests...⠂) ⠙ <span class="pl-c1">:</span> timing config:load:flatten Completed <span class="pl-k">in</span> 2ms
➤ Running <span class="pl-c1">test</span> 1...) ⠙ <span class="pl-c1">:</span> timing config:load:flatten Completed <span class="pl-k">in</span> 2ms</pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">For this to not happen.</p>
<p dir="auto">Same example as above, but what it should look like:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt; create-octobox-app@2.0.0 test
&gt; npm run elevate &amp;&amp; npm run build &amp;&amp; npm run install &amp;&amp; node test/main.test.js &amp;&amp; npm run clean


&gt; create-octobox-app@2.0.0 elevate
&gt; sudo echo '' || exit 0

[sudo] password for thomas: 


&gt; create-octobox-app@2.0.0 build
&gt; tsc --project tsconfig.json &amp;&amp; minify bin/index.max.js &gt; bin/index.js &amp;&amp; rimraf bin/index.max.js &amp;&amp; chmod u+x bin/index.js || exit 0


&gt; create-octobox-app@2.0.0 install
&gt; npm run clean &amp;&amp; sudo npm link || npm link


&gt; create-octobox-app@2.0.0 clean
&gt; sudo npm -g uninstall create-octobox-app || npm -g uninstall create-octobox-app


removed 1 package, and audited 1 package in 157ms

found 0 vulnerabilities

added 1 package, and audited 3 packages in 349ms

found 0 vulnerabilities
➤ Running tests...
➤ Running test 1...
"><pre class="notranslate"><span class="pl-k">&gt;</span> create-octobox-app@2.0.0 <span class="pl-c1">test</span>
<span class="pl-k">&gt;</span> npm run elevate <span class="pl-k">&amp;&amp;</span> npm run build <span class="pl-k">&amp;&amp;</span> npm run install <span class="pl-k">&amp;&amp;</span> node test/main.test.js <span class="pl-k">&amp;&amp;</span> npm run clean


<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 elevate
<span class="pl-k">&gt;</span> sudo <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> <span class="pl-k">||</span> <span class="pl-c1">exit</span> 0

[sudo] password <span class="pl-k">for</span> thomas: 


<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 build
<span class="pl-k">&gt;</span> tsc --project tsconfig.json <span class="pl-k">&amp;&amp;</span> minify bin/index.max.js <span class="pl-k">&gt;</span> bin/index.js <span class="pl-k">&amp;&amp;</span> rimraf bin/index.max.js <span class="pl-k">&amp;&amp;</span> chmod u+x bin/index.js <span class="pl-k">||</span> <span class="pl-c1">exit</span> 0


<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 install
<span class="pl-k">&gt;</span> npm run clean <span class="pl-k">&amp;&amp;</span> sudo npm link <span class="pl-k">||</span> npm link


<span class="pl-k">&gt;</span> create-octobox-app@2.0.0 clean
<span class="pl-k">&gt;</span> sudo npm -g uninstall create-octobox-app <span class="pl-k">||</span> npm -g uninstall create-octobox-app


removed 1 package, and audited 1 package <span class="pl-k">in</span> 157ms

found 0 vulnerabilities

added 1 package, and audited 3 packages <span class="pl-k">in</span> 349ms

found 0 vulnerabilities
➤ Running tests...
➤ Running <span class="pl-c1">test</span> 1...
</pre></div>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Have a <code class="notranslate">.npmrc</code> file in some package installed locally with <code class="notranslate">npm link</code>. Mine had one line with <code class="notranslate">engine-strict=true</code> in it.</li>
<li>Run any of said package's npm scripts, anywhere on the system. For when I'm out of the package's root directory, I've used <code class="notranslate">npm create octobox-app</code>, because I have a binary to execute with <code class="notranslate">npx</code> in my package and the name is <code class="notranslate">create-octobox-app</code>. I haven't tested running a script without using <code class="notranslate">npx</code> or some sort of alias like <code class="notranslate">npm create</code> outside of the root directory, though.</li>
<li>See the error.</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.5.5</li>
<li>Node.js: 16.14.0</li>
<li>OS Name: Ubuntu 21.09</li>
<li>System Model Name: Custom build (will provide specs if requested)</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;user&quot; config from /home/thomas/.npmrc

//registry.npmjs.org/:_authToken = (protected) 
unsafe-perm = true 
user = &quot;0&quot; 

; node bin location = /usr/local/bin/node
; cwd = /home/thomas/Documents/octobox/create-octobox-app
; HOME = /home/thomas
; Run `npm config ls -l` to show all defaults.
"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from /home/thomas/.npmrc</span>

//registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected) 
<span class="pl-k">unsafe-perm</span> = true 
<span class="pl-k">user</span> = <span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span> 

<span class="pl-c"><span class="pl-c">;</span> node bin location = /usr/local/bin/node</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = /home/thomas/Documents/octobox/create-octobox-app</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = /home/thomas</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span>
</pre></div>
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">' npm start ' produces the following timing output which sticks always to the last line:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1231174/157500431-fed4bf14-ece1-405c-abff-6d231e7230b2.png"><img width="500" alt="image" src="https://user-images.githubusercontent.com/1231174/157500431-fed4bf14-ece1-405c-abff-6d231e7230b2.png" style="max-width: 100%;"></a><br>
the "normal" output from the started app is always scrolling above this last line.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">no timing output.</p>
<p dir="auto">Digging deeper I noticed that with <code class="notranslate">--loglevel</code> <code class="notranslate">silent</code>or <code class="notranslate">error</code> there is no sticky output.<br>
BUT for <code class="notranslate">warn</code> , <code class="notranslate">notice</code>  and <code class="notranslate">http</code> there is <code class="notranslate">timing</code> output which in my opinion should not happen, since these levels are before <code class="notranslate">timing</code> log level ....</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>npm start</li>
<li>See error...</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.5.3</li>
<li>Node.js: 17.6.0</li>
<li>OS Name: macOS 12.2.1</li>
<li>System Model Name: Macbook Pro</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm config ls
npm WARN ignoring workspace config at /Users/ogi/Repositories/IMS/IMS_v2/packages/mims-test/.npmrc 
npm WARN config This command does not support workspaces.
; &quot;user&quot; config from /Users/ogi/.npmrc

; @ogi-it:registry = &quot;http://localhost:4873/&quot; ; overridden by project
//localhost:4873/:_authToken = (protected) 
//registry.npmjs.org/:_authToken = (protected) 
scripts-prepend-node-path = true 

; &quot;project&quot; config from /Users/ogi/Repositories/IMS/IMS_v2/.npmrc

@ogi-it:registry = &quot;http://localhost:4873&quot; 

; node bin location = /usr/local/bin/node
; cwd = /Users/ogi/Repositories/IMS/IMS_v2/packages/mims-test
; HOME = /Users/ogi
; Run `npm config ls -l` to show all defaults.
ogi@ogi-it-mac mims-test % "><pre class="notranslate">npm config ls
npm WARN ignoring workspace config at /Users/ogi/Repositories/IMS/IMS_v2/packages/mims-test/.npmrc 
npm WARN config This command does not support workspaces.
<span class="pl-c"><span class="pl-c">;</span> "user" config from /Users/ogi/.npmrc</span>

<span class="pl-c"><span class="pl-c">;</span> @ogi-it:registry = "http://localhost:4873/" ; overridden by project</span>
//localhost:4873/:<span class="pl-k">_authToken</span> = (protected) 
//registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected) 
<span class="pl-k">scripts-prepend-node-path</span> = true 

<span class="pl-c"><span class="pl-c">;</span> "project" config from /Users/ogi/Repositories/IMS/IMS_v2/.npmrc</span>

@ogi-it:<span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>http://localhost:4873<span class="pl-pds">"</span></span> 

<span class="pl-c"><span class="pl-c">;</span> node bin location = /usr/local/bin/node</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = /Users/ogi/Repositories/IMS/IMS_v2/packages/mims-test</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = /Users/ogi</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span>
ogi@ogi-it-mac mims-test % </pre></div>