title: While building a docker files i'm getting error executor failed running [/bin/sh -c npm install]: exit code: 1
body: <p>I'm trying to build an image of my node application but upon execution it shows the error.</p>
  <pre class="lang-bash prettyprint-override"><code>PS C:\Users\vallabh\Desktop\visits&gt; docker build .
  [+] Building 3.8s (5/5) FINISHED
  
  [internal] load build definition from Dorkerfile
  =&gt; transferring Dockerfile! 31B
  =&gt; [internal] load .dockerignore
  =&gt; =&gt; Transferring context: 2B 
  =&gt; [internal] load metadata for docker.io/library/node:alpine 
  =&gt; CACHED [1/2] FROM docker.io/library/node:alpine@sha256 :0677e437543016F6cb058d92792a14e5eb84348e3d5b4
  &gt; ERROR [2/2] RUN npm install:
  </code></pre>
  <p>The exact error is:</p>
  <pre><code>------
   &gt; [2/2] RUN npm install:
  #5 1.745 npm ERR! Tracker &quot;idealTree&quot; already exists
  #5 1.748
  #5 1.748 npm ERR! A complete log of this run can be found in:
  #5 1.748 npm ERR! /root/.npm/_logs/2022-05-28T07_47_19_509Z-debug-0.log
  ------
  executor failed running [/bin/sh -c npm install]: exit code: 1
  PS C:\Users\vallabh\Desktop\visits&gt; executor failed running [/bin/sh -c npm install]: exit code: 1D
  </code></pre>
  <p>How can I avoid this <code>npm install</code> error?</p>
  <p>For illustration:</p>
  <p><a href="https://i.stack.imgur.com/EU5sb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EU5sb.png" alt="error" /></a></p>