title: Laravel, NPM: Command "mix" not found
body: <p>Does anyone have an idea why it throws the following error and how to fix it? I have also tried to reinstall all packages using <code>npm install</code> several times. Reinstalling NodeJS on Windows didn't work; I'm using Laravel 8.22.0.</p>
  <p><a href="https://i.stack.imgur.com/Yme3I.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Yme3I.png" alt="enter image description here" /></a></p>
  <p><strong>Full Log</strong></p>
  <pre><code>0 verbose cli [
  0 verbose cli   'D:\\Programme\\NodeJS\\node.exe',
  0 verbose cli   'D:\\Programme\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js',
  0 verbose cli   'run',
  0 verbose cli   'development'
  0 verbose cli ]
  1 info using npm@7.3.0
  2 info using node@v15.5.1
  3 timing config:load:defaults Completed in 1ms
  4 timing config:load:file:D:\Programme\NodeJS\node_modules\npm\npmrc Completed in 2ms
  5 timing config:load:builtin Completed in 2ms
  6 timing config:load:cli Completed in 1ms
  7 timing config:load:env Completed in 0ms
  8 timing config:load:file:D:\My\Path\.npmrc 33,,,,,,,,Completed in 0ms
  9 timing config:load:project Completed in 1ms
  10 timing config:load:file:C:\Users\Privat\.npmrc Completed in 1ms
  11 timing config:load:user Completed in 1ms
  12 timing config:load:file:C:\Users\Privat\AppData\Roaming\npm\etc\npmrc Completed in 0ms
  13 timing config:load:global Completed in 0ms
  14 timing config:load:cafile Completed in 0ms
  15 timing config:load:validate Completed in 1ms
  16 timing config:load:setUserAgent Completed in 0ms
  17 timing config:load:setEnvs Completed in 1ms
  18 timing config:load Completed in 8ms
  19 verbose npm-session 8b04ab779a67efab
  20 timing npm:load Completed in 18ms
  21 timing command:run-script Completed in 23ms
  22 verbose stack Error: command failed
  22 verbose stack     at ChildProcess.&lt;anonymous&gt; 
  (D:\Programme\NodeJS\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
  22 verbose stack     at ChildProcess.emit (node:events:376:20)
  22 verbose stack     at maybeClose (node:internal/child_process:1063:16)
  22 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
  23 verbose cwd D:\My\Path
  24 verbose Windows_NT 10.0.19042
  25 verbose argv &quot;D:\\Programme\\NodeJS\\node.exe&quot; &quot;D:\\Programme\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;run&quot; &quot;development&quot;
  26 verbose node v15.5.1
  27 verbose npm  v7.3.0
  28 error code 1
  29 error path D:\My\Path\IDE
  30 error command failed
  31 error command C:\WINDOWS\system32\cmd.exe /d /s /c mix
  32 verbose exit 1
  </code></pre>
  <p><strong>package.json</strong></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.1&quot;,
          &quot;bootstrap&quot;: &quot;^4.0.0&quot;,
          &quot;clean-webpack-plugin&quot;: &quot;^3.0.0&quot;,
          &quot;cross-env&quot;: &quot;^5.1&quot;,
          &quot;jquery&quot;: &quot;^3.2&quot;,
          &quot;laravel-mix&quot;: &quot;^5.0.5&quot;,
          &quot;less&quot;: &quot;^3.12.2&quot;,
          &quot;less-loader&quot;: &quot;^7.0.0&quot;,
          &quot;lodash&quot;: &quot;^4.17.13&quot;,
          &quot;popper.js&quot;: &quot;^1.12&quot;,
          &quot;resolve-url-loader&quot;: &quot;^3.1.2&quot;,
          &quot;sass&quot;: &quot;^1.20.1&quot;,
          &quot;sass-loader&quot;: &quot;7.*&quot;,
          &quot;vue&quot;: &quot;^2.5.17&quot;,
          &quot;vue-template-compiler&quot;: &quot;^2.6.10&quot;
      },
      &quot;dependencies&quot;: {
          &quot;bootstrap-vue&quot;: &quot;^2.21.2&quot;,
          &quot;uglify-js&quot;: &quot;^3.10.3&quot;
      }
  }
  </code></pre>