title: npm run production error : "unknown option no-progress"
body: <p>I am trying to run the command <code>npm run dev</code>  or <code>npm run production</code>. But none of them are successful. Once I run the command I am getting an error like in image :</p>
  <p><a href="https://i.stack.imgur.com/LG8xC.jpg" rel="noreferrer">error after running npm run prod</a></p>
  <p>My package.json file is like below :</p>
  <pre><code>{
      &quot;private&quot;: true,
      &quot;scripts&quot;: {
          &quot;dev&quot;: &quot;npm run development&quot;,
          &quot;dev:all&quot;: &quot;concurrently \&quot;npm run dev --section=js &amp;&amp; npm run build:lang\&quot; \&quot;npm run dev --section=css\&quot; \&quot;npm run dev --section=server\&quot; --kill-others-on-fail&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;build:lang&quot;: &quot;cross-env babel-node ./lang.script.js&quot;,
          &quot;clear:babel-cache&quot;: &quot;rimraf -rf ./node_modules/.cache/babel-loader/*&quot;,
          &quot;clear:messages&quot;: &quot;rimraf -rf ./resources/messages/*&quot;,
          &quot;watch&quot;: &quot;npm run development -- --watch&quot;,
          &quot;watch:all&quot;: &quot;concurrently \&quot;npm run watch --section=js\&quot; \&quot;npm run watch --section=css\&quot; \&quot;npm run watch --section=server\&quot; --kill-others-on-fail&quot;,
          &quot;watch-poll&quot;: &quot;npm run watch -- --watch-poll&quot;,
          &quot;watch-poll:all&quot;: &quot;concurrently \&quot;npm run watch-poll --section=js\&quot; \&quot;npm run watch-poll --section=css\&quot; \&quot;npm run watch-poll --section=server\&quot; --kill-others-on-fail&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;hot:all&quot;: &quot;concurrently \&quot;npm run hot --section=js\&quot; --kill-others-on-fail&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;prod:all&quot;: &quot;concurrently \&quot;npm run prod --section=js &amp;&amp; npm run build:lang\&quot; \&quot;npm run prod --section=css\&quot; \&quot;npm run prod --section=server\&quot; --kill-others-on-fail&quot;,
          &quot;ide&quot;: &quot;php artisan ide-helper:generate &amp;&amp; php artisan ide-helper:meta &amp;&amp; php artisan ide-helper:models -N&quot;
      },
      &quot;devDependencies&quot;: {
          &quot;@ant-design/icons&quot;: &quot;^4.4.0&quot;,
          &quot;@babel/node&quot;: &quot;^7.12.10&quot;,
          &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.12.1&quot;,
          &quot;@babel/plugin-proposal-object-rest-spread&quot;: &quot;^7.12.1&quot;,
          &quot;@babel/plugin-syntax-dynamic-import&quot;: &quot;^7.8.3&quot;,
          &quot;@babel/preset-react&quot;: &quot;^7.12.10&quot;,
          &quot;@hot-loader/react-dom&quot;: &quot;^17.0.1&quot;,
          &quot;@loadable/component&quot;: &quot;^5.14.1&quot;,
          &quot;@ungap/url-search-params&quot;: &quot;^0.2.2&quot;,
          &quot;antd&quot;: &quot;^4.11.2&quot;,
          &quot;autoprefixer&quot;: &quot;^10.2.3&quot;,
          &quot;axios&quot;: &quot;^0.21&quot;,
          &quot;babel-plugin-import&quot;: &quot;^1.13.3&quot;,
          &quot;babel-plugin-react-intl&quot;: &quot;^3.2.1&quot;,
          &quot;babel-plugin-recharts&quot;: &quot;^1.2.1&quot;,
          &quot;clean-webpack-plugin&quot;: &quot;^3.0.0&quot;,
          &quot;cross-env&quot;: &quot;^7.0.3&quot;,
          &quot;css-loader&quot;: &quot;^5.0.1&quot;,
          &quot;echarts&quot;: &quot;^5.0.1&quot;,
          &quot;echarts-for-react&quot;: &quot;^2.0.16&quot;,
          &quot;fast-deep-equal&quot;: &quot;^3.1.3&quot;,
          &quot;file-loader&quot;: &quot;^6.2.0&quot;,
          &quot;flag-icon-css&quot;: &quot;^3.5.0&quot;,
          &quot;fs&quot;: &quot;0.0.1-security&quot;,
          &quot;glob&quot;: &quot;^7.1.6&quot;,
          &quot;history&quot;: &quot;^5.0.0&quot;,
          &quot;install&quot;: &quot;^0.13.0&quot;,
          &quot;laravel-echo&quot;: &quot;^1.10.0&quot;,
          &quot;laravel-mix&quot;: &quot;^6.0.11&quot;,
          &quot;less&quot;: &quot;4.1.0&quot;,
          &quot;less-vars-to-js&quot;: &quot;^1.3.0&quot;,
          &quot;line-awesome&quot;: &quot;github:icons8/line-awesome&quot;,
          &quot;line-height&quot;: &quot;^0.3.1&quot;,
          &quot;lodash&quot;: &quot;^4.17.20&quot;,
          &quot;lodash-webpack-plugin&quot;: &quot;^0.11.6&quot;,
          &quot;mkdirp&quot;: &quot;^1.0.4&quot;,
          &quot;moment&quot;: &quot;^2.29.1&quot;,
          &quot;node-sass&quot;: &quot;^5.0.0&quot;,
          &quot;nprogress&quot;: &quot;^0.2.0&quot;,
          &quot;postcss-less&quot;: &quot;^4.0.0&quot;,
          &quot;prop-types&quot;: &quot;^15.7.2&quot;,
          &quot;pusher-js&quot;: &quot;^7.0.3&quot;,
          &quot;react-dnd&quot;: &quot;^11.1.3&quot;,
          &quot;react-google-recaptcha&quot;: &quot;^2.1.0&quot;,
          &quot;react-hot-loader&quot;: &quot;^4.13.0&quot;,
          &quot;react-intl&quot;: &quot;^5.10.19&quot;,
          &quot;react-motion&quot;: &quot;^0.5.2&quot;,
          &quot;react-redux&quot;: &quot;^7.2.2&quot;,
          &quot;react-router-redux&quot;: &quot;^5.0.0-alpha.9&quot;,
          &quot;react-scrollbar&quot;: &quot;^0.5.6&quot;,
          &quot;react-slick&quot;: &quot;^0.28.0&quot;,
          &quot;recharts&quot;: &quot;^2.0.4&quot;,
          &quot;redux&quot;: &quot;^4.0.5&quot;,
          &quot;redux-saga&quot;: &quot;^1.1.3&quot;,
          &quot;redux-thunk&quot;: &quot;^2.3.0&quot;,
          &quot;resolve-url-loader&quot;: &quot;^3.1.2&quot;,
          &quot;rfs&quot;: &quot;^9.0.3&quot;,
          &quot;sass&quot;: &quot;^1.32.5&quot;,
          &quot;sass-loader&quot;: &quot;^10.1.1&quot;,
          &quot;socket.io-client&quot;: &quot;^3.1.0&quot;,
          &quot;style-loader&quot;: &quot;^2.0.0&quot;,
          &quot;url-search-params&quot;: &quot;^1.1.0&quot;,
          &quot;vue-template-compiler&quot;: &quot;^2.6.12&quot;,
          &quot;webpack&quot;: &quot;^5.19.0&quot;,
          &quot;webpack-bundle-analyzer&quot;: &quot;^4.4.0&quot;
      },
      &quot;browserslist&quot;: [
          &quot;since 2015&quot;
      ],
      &quot;dependencies&quot;: {
          &quot;@ant-design/dark-theme&quot;: &quot;^2.0.2&quot;,
          &quot;@tinymce/tinymce-react&quot;: &quot;^3.9.0&quot;,
          &quot;animate.css&quot;: &quot;^4.1.1&quot;,
          &quot;concurrently&quot;: &quot;^5.3.0&quot;,
          &quot;connected-react-router&quot;: &quot;^6.8.0&quot;,
          &quot;cropperjs&quot;: &quot;^1.5.9&quot;,
          &quot;cryptocoins-icons&quot;: &quot;^2.9.0&quot;,
          &quot;dompurify&quot;: &quot;^2.2.6&quot;,
          &quot;husky&quot;: &quot;^4.3.8&quot;,
          &quot;intl-tel-input&quot;: &quot;^17.0.8&quot;,
          &quot;laravel-echo-server&quot;: &quot;^1.6.2&quot;,
          &quot;laravel-mix-merge-manifest&quot;: &quot;^1.0.1&quot;,
          &quot;less-loader&quot;: &quot;^7.3.0&quot;,
          &quot;memfs&quot;: &quot;^3.2.0&quot;,
          &quot;qrcode.react&quot;: &quot;^1.0.1&quot;,
          &quot;raw-loader&quot;: &quot;^4.0.2&quot;,
          &quot;rc-color-picker&quot;: &quot;^1.2.6&quot;,
          &quot;react&quot;: &quot;^17.0.1&quot;,
          &quot;react-bottom-scroll-listener&quot;: &quot;^5.0.0&quot;,
          &quot;react-cryptocoins&quot;: &quot;^1.0.11&quot;,
          &quot;react-dom&quot;: &quot;^17.0.1&quot;,
          &quot;react-full-screen&quot;: &quot;^0.3.1&quot;,
          &quot;react-grid-layout&quot;: &quot;^1.2.0&quot;,
          &quot;react-helmet&quot;: &quot;^6.1.0&quot;,
          &quot;react-idle-timer&quot;: &quot;^4.5.2&quot;,
          &quot;react-infinite-scroller&quot;: &quot;^1.2.4&quot;,
          &quot;react-phone-input-2&quot;: &quot;^2.13.9&quot;,
          &quot;react-phone-number-input&quot;: &quot;^3.1.10&quot;,
          &quot;react-quill&quot;: &quot;^1.3.5&quot;,
          &quot;react-router-dom&quot;: &quot;^5.2.0&quot;,
          &quot;rimraf&quot;: &quot;^3.0.2&quot;,
          &quot;simplebar-react&quot;: &quot;^2.3.0&quot;,
          &quot;tinymce&quot;: &quot;^5.6.2&quot;
      },
      &quot;husky&quot;: {
          &quot;hooks&quot;: {
              &quot;pre-commit&quot;: &quot;npm run clear:babel-cache &amp;&amp; npm run clear:messages &amp;&amp; npm run prod:all &amp;&amp; git add .&quot;
          }
      }
  }
  </code></pre>
  <p>My webpack.mix.js file is like below:</p>
  <pre><code>const rimraf = require('rimraf');
  if(['js', 'css'].includes(process.env.npm_config_section)){
      rimraf.sync('./public/mix-manifest.json');
  }
  
  if(['server'].includes(process.env.npm_config_section)){
      rimraf.sync('./public/server/mix-manifest.json');
  }
  
  if (['js', 'css', 'server'].includes(process.env.npm_config_section)) {
      require(`${__dirname}/webpack.${process.env.npm_config_section}.mix.js`)
  } else {
      throw new Error('Invalid section argument!')
  }
  </code></pre>
  <p>webpack folder is inside of node_modules in the directory where I have installed my laravel. (/home/coins/coins).</p>
  <p>I am using the latest version of webpack and latest version of npm. Node version is : <code>v14.15.4</code></p>
  <p>It took my 1 week and still I am not able to figure it out. I am not able to run anything related to npm run ... .</p>
  <p>P.S: There are some packages and dependencies were outdated and I have used npm update in order to update the packages which is mentioned in original package.json. So I am putting original package.json before I made an update maybe this is the reason why I am getting this error :</p>
  <pre><code>{
      &quot;private&quot;: true,
      &quot;scripts&quot;: {
          &quot;dev&quot;: &quot;npm run development&quot;,
          &quot;dev:all&quot;: &quot;concurrently \&quot;npm run dev --section=js &amp;&amp; npm run build:lang\&quot; \&quot;npm run dev --section=css\&quot; \&quot;npm run dev --section=server\&quot; --kill-others-on-fail&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;build:lang&quot;: &quot;cross-env babel-node ./lang.script.js&quot;,
          &quot;clear:babel-cache&quot;: &quot;rimraf -rf ./node_modules/.cache/babel-loader/*&quot;,
          &quot;clear:messages&quot;: &quot;rimraf -rf ./resources/messages/*&quot;,
          &quot;watch&quot;: &quot;npm run development -- --watch&quot;,
          &quot;watch:all&quot;: &quot;concurrently \&quot;npm run watch --section=js\&quot; \&quot;npm run watch --section=css\&quot; \&quot;npm run watch --section=server\&quot; --kill-others-on-fail&quot;,
          &quot;watch-poll&quot;: &quot;npm run watch -- --watch-poll&quot;,
          &quot;watch-poll:all&quot;: &quot;concurrently \&quot;npm run watch-poll --section=js\&quot; \&quot;npm run watch-poll --section=css\&quot; \&quot;npm run watch-poll --section=server\&quot; --kill-others-on-fail&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;hot:all&quot;: &quot;concurrently \&quot;npm run hot --section=js\&quot; --kill-others-on-fail&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;prod:all&quot;: &quot;concurrently \&quot;npm run prod --section=js &amp;&amp; npm run build:lang\&quot; \&quot;npm run prod --section=css\&quot; \&quot;npm run prod --section=server\&quot; --kill-others-on-fail&quot;,
          &quot;ide&quot;: &quot;php artisan ide-helper:generate &amp;&amp; php artisan ide-helper:meta &amp;&amp; php artisan ide-helper:models -N&quot;
      },
      &quot;devDependencies&quot;: {
          &quot;@ant-design/icons&quot;: &quot;^2.1.0&quot;,
          &quot;@babel/node&quot;: &quot;^7.4.5&quot;,
          &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.4.4&quot;,
          &quot;@babel/plugin-proposal-object-rest-spread&quot;: &quot;^7.8.3&quot;,
          &quot;@babel/plugin-syntax-dynamic-import&quot;: &quot;^7.2.0&quot;,
          &quot;@babel/preset-react&quot;: &quot;^7.0.0&quot;,
          &quot;@hot-loader/react-dom&quot;: &quot;^16.8.6&quot;,
          &quot;@loadable/component&quot;: &quot;^5.10.1&quot;,
          &quot;@ungap/url-search-params&quot;: &quot;^0.1.2&quot;,
          &quot;antd&quot;: &quot;^3.23.1&quot;,
          &quot;autoprefixer&quot;: &quot;^9.6.1&quot;,
          &quot;axios&quot;: &quot;^0.18&quot;,
          &quot;babel-plugin-import&quot;: &quot;^1.11.2&quot;,
          &quot;babel-plugin-react-intl&quot;: &quot;^3.2.1&quot;,
          &quot;babel-plugin-recharts&quot;: &quot;^1.2.0&quot;,
          &quot;clean-webpack-plugin&quot;: &quot;^3.0.0&quot;,
          &quot;cross-env&quot;: &quot;^5.1&quot;,
          &quot;css-loader&quot;: &quot;^3.2.0&quot;,
          &quot;echarts&quot;: &quot;^4.2.1&quot;,
          &quot;echarts-for-react&quot;: &quot;^2.0.15-beta.0&quot;,
          &quot;fast-deep-equal&quot;: &quot;^2.0.1&quot;,
          &quot;file-loader&quot;: &quot;^4.2.0&quot;,
          &quot;flag-icon-css&quot;: &quot;^3.3.0&quot;,
          &quot;fs&quot;: &quot;0.0.1-security&quot;,
          &quot;glob&quot;: &quot;^7.1.4&quot;,
          &quot;history&quot;: &quot;^4.9.0&quot;,
          &quot;install&quot;: &quot;^0.12.2&quot;,
          &quot;laravel-echo&quot;: &quot;^1.5.4&quot;,
          &quot;laravel-mix&quot;: &quot;^4.0.7&quot;,
          &quot;less&quot;: &quot;2.7.3&quot;,
          &quot;less-vars-to-js&quot;: &quot;^1.3.0&quot;,
          &quot;line-awesome&quot;: &quot;github:icons8/line-awesome&quot;,
          &quot;line-height&quot;: &quot;^0.3.1&quot;,
          &quot;lodash&quot;: &quot;^4.17.11&quot;,
          &quot;lodash-webpack-plugin&quot;: &quot;^0.11.5&quot;,
          &quot;mkdirp&quot;: &quot;^0.5.1&quot;,
          &quot;moment&quot;: &quot;^2.24.0&quot;,
          &quot;node-sass&quot;: &quot;^4.13.0&quot;,
          &quot;nprogress&quot;: &quot;^0.2.0&quot;,
          &quot;postcss-less&quot;: &quot;^3.1.4&quot;,
          &quot;prop-types&quot;: &quot;^15.7.2&quot;,
          &quot;pusher-js&quot;: &quot;^4.4.0&quot;,
          &quot;react-dnd&quot;: &quot;^5.0.0&quot;,
          &quot;react-google-recaptcha&quot;: &quot;^1.0.5&quot;,
          &quot;react-hot-loader&quot;: &quot;^4.11.1&quot;,
          &quot;react-intl&quot;: &quot;^3.0.0-beta-8&quot;,
          &quot;react-motion&quot;: &quot;^0.5.2&quot;,
          &quot;react-redux&quot;: &quot;^7.1.0&quot;,
          &quot;react-router-redux&quot;: &quot;^5.0.0-alpha.9&quot;,
          &quot;react-scrollbar&quot;: &quot;^0.5.6&quot;,
          &quot;react-slick&quot;: &quot;^0.23.1&quot;,
          &quot;recharts&quot;: &quot;^1.8.5&quot;,
          &quot;redux&quot;: &quot;^4.0.0&quot;,
          &quot;redux-saga&quot;: &quot;^0.16.0&quot;,
          &quot;redux-thunk&quot;: &quot;^2.3.0&quot;,
          &quot;resolve-url-loader&quot;: &quot;^2.3.1&quot;,
          &quot;rfs&quot;: &quot;^8.0.4&quot;,
          &quot;sass&quot;: &quot;^1.15.2&quot;,
          &quot;sass-loader&quot;: &quot;^7.1.0&quot;,
          &quot;socket.io-client&quot;: &quot;^2.2.0&quot;,
          &quot;style-loader&quot;: &quot;^0.23.1&quot;,
          &quot;url-search-params&quot;: &quot;^1.1.0&quot;,
          &quot;vue-template-compiler&quot;: &quot;^2.6.10&quot;,
          &quot;webpack-bundle-analyzer&quot;: &quot;^3.3.2&quot;
      },
      &quot;browserslist&quot;: [
          &quot;since 2015&quot;
      ],
      &quot;dependencies&quot;: {
          &quot;@ant-design/dark-theme&quot;: &quot;^0.2.2&quot;,
          &quot;@tinymce/tinymce-react&quot;: &quot;^3.3.2&quot;,
          &quot;animate.css&quot;: &quot;^3.7.2&quot;,
          &quot;concurrently&quot;: &quot;^5.0.0&quot;,
          &quot;connected-react-router&quot;: &quot;^6.5.2&quot;,
          &quot;cropperjs&quot;: &quot;^1.5.5&quot;,
          &quot;cryptocoins-icons&quot;: &quot;^2.9.0&quot;,
          &quot;dompurify&quot;: &quot;^2.0.7&quot;,
          &quot;husky&quot;: &quot;^3.0.8&quot;,
          &quot;intl-tel-input&quot;: &quot;^16.0.3&quot;,
          &quot;laravel-mix-merge-manifest&quot;: &quot;^0.1.2&quot;,
          &quot;less-loader&quot;: &quot;^5.0.0&quot;,
          &quot;memfs&quot;: &quot;^2.15.5&quot;,
          &quot;qrcode.react&quot;: &quot;^0.9.3&quot;,
          &quot;raw-loader&quot;: &quot;^3.1.0&quot;,
          &quot;rc-color-picker&quot;: &quot;^1.2.6&quot;,
          &quot;react&quot;: &quot;^16.8.6&quot;,
          &quot;react-bottom-scroll-listener&quot;: &quot;^3.0.0&quot;,
          &quot;react-cryptocoins&quot;: &quot;^1.0.11&quot;,
          &quot;react-dom&quot;: &quot;^16.9.0&quot;,
          &quot;react-full-screen&quot;: &quot;^0.2.4&quot;,
          &quot;react-grid-layout&quot;: &quot;^0.17.1&quot;,
          &quot;react-helmet&quot;: &quot;^5.2.1&quot;,
          &quot;react-idle-timer&quot;: &quot;^4.2.9&quot;,
          &quot;react-infinite-scroller&quot;: &quot;^1.2.4&quot;,
          &quot;react-phone-input-2&quot;: &quot;^2.9.5&quot;,
          &quot;react-phone-number-input&quot;: &quot;^2.3.21&quot;,
          &quot;react-quill&quot;: &quot;^1.3.3&quot;,
          &quot;react-router-dom&quot;: &quot;^5.0.1&quot;,
          &quot;rimraf&quot;: &quot;^3.0.0&quot;,
          &quot;simplebar-react&quot;: &quot;^1.2.3&quot;,
          &quot;tinymce&quot;: &quot;^4.9.6&quot;
      },
      &quot;husky&quot;: {
          &quot;hooks&quot;: {
              &quot;pre-commit&quot;: &quot;npm run clear:babel-cache &amp;&amp; npm run clear:messages &amp;&amp; npm run prod:all &amp;&amp; git add .&quot;
          }
      }
  }
  </code></pre>
  <p>Any help would be highly appreciated.</p>