title: How can I solve the npm run dev error I'm facing after creating a new Laravel 7 project?
body: <p>I have created a new Laravel 7 project and after doing so, ran the command npm install and all the packages in my package.json were downloaded into the node_modules directory. Then i tried running the command npm run dev and keeps on failing.</p>
  <p>I'm using the following versions</p>
  <ul>
  <li>PHP 7.4.11</li>
  <li>Laravel installer 4.11</li>
  <li>Node v15.0.1</li>
  <li>npm 7.0.3</li>
  <li>Composer 2.0.9</li>
  </ul>
  <p>This is my package.json file</p>
  <pre><code>{
  &quot;private&quot;: true,
  &quot;scripts&quot;: {
      &quot;dev&quot;: &quot;npm run development&quot;,
      &quot;development&quot;: &quot;cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js&quot;,
      &quot;watch&quot;: &quot;npm run development -- --watch&quot;,
      &quot;watch-poll&quot;: &quot;npm run watch -- --watch-poll&quot;,
      &quot;hot&quot;: &quot;cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js&quot;,
      &quot;prod&quot;: &quot;npm run production&quot;,
      &quot;production&quot;: &quot;cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js&quot;
  },
  &quot;devDependencies&quot;: {
      &quot;autoprefixer&quot;: &quot;^10.2.4&quot;,
      &quot;axios&quot;: &quot;^0.21.1&quot;,
      &quot;cross-env&quot;: &quot;^7.0.3&quot;,
      &quot;laravel-mix&quot;: &quot;^5.0.1&quot;,
      &quot;lodash&quot;: &quot;^4.17.13&quot;,
      &quot;resolve-url-loader&quot;: &quot;^3.1.0&quot;,
      &quot;sass&quot;: &quot;^1.15.2&quot;,
      &quot;sass-loader&quot;: &quot;^8.0.0&quot;,
      &quot;webpack&quot;: &quot;^5.21.2&quot;,
      &quot;webpack-cli&quot;: &quot;^4.5.0&quot;
  },
  &quot;name&quot;: &quot;MyProject&quot;
  }
  </code></pre>
  <p>This is the error I get after running npm run watch or npm run dev</p>
  <pre><code>&gt; dev
  &gt; npm run development
  
  
  &gt; development
  &gt; cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules - 
   -config=node_modules/laravel-mix
  /setup/webpack.config.js
  npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c &quot;cross-env NODE_ENV=development 
  node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-
  mix/setup/webpack.config.js&quot;
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\Rolling Sure\AppData\Local\npm-cache\_logs\2021-02-15T09_26_50_575Z- 
  debug.log
  npm ERR! code 2
  npm ERR! path C:\Users\Rolling Sure\Desktop\Code Fintech\duplicate\MyProject
  npm ERR! command failed
  npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c &quot;npm run development&quot;
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\Rolling Sure\AppData\Local\npm-cache\_logs\2021-02-15T09_26_50_652Z- 
  debug.log
  </code></pre>