T
T
Torento203452021-04-10 21:54:48
webpack
Torento20345, 2021-04-10 21:54:48

What causes the Can not find module webpack-cli error?

Tell me what is causing the error in webpack 5

npm init
npm i -D webpack webpack-cli


webpack.config.js
module.exports = {
  entry: 'js/js.js',
  outout: {
    filename: 'bundel.js',
    path: 'js'
  }
}


Run in the console webpackand give an error
Can not find module webpack-cli

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-04-10
@yarkov

$(npm bin)/webpack
Well, or set globally

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question