title: webpack-cli Unknown argument: --output
body: <p>My npm, node js versions:</p>
  <p><a href="https://i.stack.imgur.com/BOkSi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BOkSi.png" alt="enter image description here" /></a></p>
  <p>When I try to run the <code>npm dev</code> command:</p>
  <p><a href="https://i.stack.imgur.com/ozlKy.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ozlKy.png" alt="enter image description here" /></a></p>
  <p>The log file:</p>
  <pre><code>0 info it worked if it ends with ok
  1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'dev' ]
  2 info using npm@6.14.8
  3 info using node@v14.15.0
  4 verbose run-script [ 'predev', 'dev', 'postdev' ]
  5 info lifecycle winteka@1.0.0~predev: winteka@1.0.0
  6 info lifecycle winteka@1.0.0~dev: winteka@1.0.0
  7 verbose lifecycle winteka@1.0.0~dev: unsafe-perm in lifecycle true
  8 verbose lifecycle winteka@1.0.0~dev: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/dziugas/winteka/node_modules/.bin:/home/dziugas/.local/share/virtualenvs/winteka-rp-_dylZ/bin:/home/dziugas/.vscode-server/bin/fcac248b077b55bae4ba5bab613fd6e9156c2f0c/bin:/home/dziugas/.local/bin:/home/dziugas/.vscode-server/bin/fcac248b077b55bae4ba5bab613fd6e9156c2f0c/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
  9 verbose lifecycle winteka@1.0.0~dev: CWD: /home/dziugas/winteka
  10 silly lifecycle winteka@1.0.0~dev: Args: [
  10 silly lifecycle   '-c',
  10 silly lifecycle   'webpack --mode development --watch ./winteka/frontend/src/index.js --output ./winteka/frontend/static/frontend/main.js'
  10 silly lifecycle ]
  11 silly lifecycle winteka@1.0.0~dev: Returned: code: 2  signal: null
  12 info lifecycle winteka@1.0.0~dev: Failed to exec dev script
  13 verbose stack Error: winteka@1.0.0 dev: `webpack --mode development --watch ./winteka/frontend/src/index.js --output ./winteka/frontend/static/frontend/main.js`
  13 verbose stack Exit status 2
  13 verbose stack     at EventEmitter.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
  13 verbose stack     at EventEmitter.emit (events.js:315:20)
  13 verbose stack     at ChildProcess.&lt;anonymous&gt; (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
  13 verbose stack     at ChildProcess.emit (events.js:315:20)
  13 verbose stack     at maybeClose (internal/child_process.js:1048:16)
  13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
  14 verbose pkgid winteka@1.0.0
  15 verbose cwd /home/dziugas/winteka
  16 verbose Linux 5.4.0-52-generic
  17 verbose argv &quot;/usr/local/bin/node&quot; &quot;/usr/local/bin/npm&quot; &quot;run&quot; &quot;dev&quot;
  18 verbose node v14.15.0
  19 verbose npm  v6.14.8
  20 error code ELIFECYCLE
  21 error errno 2
  22 error winteka@1.0.0 dev: `webpack --mode development --watch ./winteka/frontend/src/index.js --output ./winteka/frontend/static/frontend/main.js`
  22 error Exit status 2
  23 error Failed at the winteka@1.0.0 dev script.
  23 error This is probably not a problem with npm. There is likely additional logging output above.
  24 verbose exit [ 2, true ]
  </code></pre>
  <p>What can be wrong?
  This is my script line in the package.json</p>
  <pre><code>  &quot;scripts&quot;: {
      &quot;dev&quot;: &quot;webpack --mode development --watch ./winteka/frontend/src/index.js --output ./winteka/frontend/static/frontend/main.js&quot;,
      &quot;build&quot;: &quot;webpack --mode production ./winteka/frontend/src/index.js --output ./winteka/frontend/static/frontend/main.js&quot;
    }
  </code></pre>
  <p>And the installed packages in the package.json file:</p>
  <pre><code>  &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.12.3&quot;,
      &quot;@babel/preset-env&quot;: &quot;^7.12.1&quot;,
      &quot;@babel/preset-react&quot;: &quot;^7.12.5&quot;,
      &quot;babel-loader&quot;: &quot;^8.2.1&quot;,
      &quot;babel-plugin-transform-class-properties&quot;: &quot;^6.24.1&quot;,
      &quot;webpack&quot;: &quot;^5.4.0&quot;,
      &quot;webpack-cli&quot;: &quot;^4.2.0&quot;
    },
    &quot;dependencies&quot;: {
      &quot;prop-types&quot;: &quot;^15.7.2&quot;,
      &quot;react&quot;: &quot;^17.0.1&quot;,
      &quot;react-dom&quot;: &quot;^17.0.1&quot;,
      &quot;styled-components&quot;: &quot;^5.2.1&quot;
    }
  </code></pre>
  <p>In the past I have made few servers with the npm and node.js, I was using the same method and everything worked before. How can I fix it?</p>