title: How fix error npm "This is related to npm not being able to find a file" in Laravel?
body: <p>I want to work with Laravel Broadcasting and follow the instructions, I created a completely new Laravel 8.12 project and try to run with npm run dev command, but I get errors:</p>
  <pre><code>npm ERR! code ENOENT
  npm ERR! syscall spawn sh
  npm ERR! path /Users/administrator/procob
  npm ERR! errno -2
  npm ERR! enoent spawn sh ENOENT
  npm ERR! enoent This is related to npm not being able to find a file.
  npm ERR! enoent 
  </code></pre>
  <p>My package.json:</p>
  <pre><code>{
  &quot;private&quot;: true,
  &quot;scripts&quot;: {
      &quot;dev&quot;: &quot;npm run development&quot;,
      &quot;development&quot;: &quot;mix&quot;,
      &quot;watch&quot;: &quot;mix watch&quot;,
      &quot;watch-poll&quot;: &quot;mix watch -- --watch-options-poll=1000&quot;,
      &quot;hot&quot;: &quot;mix watch --hot&quot;,
      &quot;prod&quot;: &quot;npm run production&quot;,
      &quot;production&quot;: &quot;mix --production&quot;
  },
  &quot;devDependencies&quot;: {
      &quot;axios&quot;: &quot;^0.21&quot;,
      &quot;bootstrap&quot;: &quot;^4.0.0&quot;,
      &quot;cross-env&quot;: &quot;^7.0.3&quot;,
      &quot;jquery&quot;: &quot;^3.2&quot;,
      &quot;laravel-echo&quot;: &quot;^1.10.0&quot;,
      &quot;laravel-mix&quot;: &quot;^6.0.11&quot;,
      &quot;lodash&quot;: &quot;^4.17.19&quot;,
      &quot;popper.js&quot;: &quot;^1.12&quot;,
      &quot;postcss&quot;: &quot;^8.1.14&quot;,
      &quot;pusher-js&quot;: &quot;^7.0.3&quot;,
      &quot;resolve-url-loader&quot;: &quot;^3.1.2&quot;,
      &quot;sass&quot;: &quot;^1.20.1&quot;,
      &quot;sass-loader&quot;: &quot;^8.0.0&quot;,
      &quot;vue&quot;: &quot;^2.5.17&quot;,
      &quot;vue-template-compiler&quot;: &quot;^2.6.10&quot;,
      &quot;webpack&quot;: &quot;^5.20.2&quot;
  }
  </code></pre>
  <p>}</p>
  <p>And full error</p>
  <pre><code>22 verbose stack     at Process.ChildProcess._handle.onexit 
  (internal/child_process.js:269:19)
  22 verbose stack     at onErrorNT (internal/child_process.js:465:16)
  22 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:80:21)
  23 verbose cwd /Users/administrator/procob
  24 verbose Darwin 20.2.0
  25 verbose argv &quot;/usr/local/bin/node&quot; &quot;/usr/local/bin/npm&quot; &quot;run&quot; &quot;dev&quot;
  26 verbose node v14.15.4
  27 verbose npm  v7.5.2
  28 error code ENOENT
  29 error syscall spawn sh
  30 error path /Users/administrator/procob
  31 error errno -2
  32 error enoent spawn sh ENOENT
  33 error enoent This is related to npm not being able to find a file.
  34 verbose exit -2
  </code></pre>
  <p>I will be glad for any help!</p>