In terminal use of VSCode, using NPM run dev causes an error
Error: Cannot find module 'webpack/bin/config-yargs
It is possible that the webpack-dev-server version number is too low
The solution
Uninstall webpack-dev-server globally first
npm uninstall webpack-dev-server -g
Then install the latest version
npm install webpack-dev-server@latest
Read More:
- Solved – problem cannot find module ‘webpack / bin / config yargs’
- Error: Cannot find module’webpack/bin/config-yargs’ solution
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error [How to Fix]
- Cannot find module ‘webpack cli / bin / config yargs‘
- NPM run dev error: cannot find module ‘webpack cli / bin / config yargs‘
- VUE Error: Cannot find module ‘webpack/bin/config-yargs’
- Error: Cannot find Module ‘Webpack-cli ‘- Solution
- Run webpack error: Error: Cannot find module’webpack/lib/node/NodeTemplatePlugin’
- NPX webpack cannot find module’html webpack plugin’a bug causes headache
- [Solved] Error: Cannot find module ‘webpack/lib/RequestShortener’
- Has HTML webpack plugin been installed, or error: cannot find module ‘HTML webpack plugin’
- Solution to prompt “cannot find module ‘eslint config defaults / configurations / eslint’” when submitting with Git
- Error: Cannot find module ‘webpack/schemas/WebpackOptions.json’
- Error: cannot find module ‘webpack / lib / ruleset’_ solve
- Perfectly solve the problem of NPM start error: cannot find module ‘XX’
- Webpack error module build failed: typeerror: fileSystem.statSync is not a function
- Python error: importerror: DLL load failed: unable to find the specified module solution
- Module not found error: the solution to the problem of no module named ‘MySQL’
- Webpack Upgrade Error: webpack.NamedModulesPlugin is not a constructor
- [solution] a perfect solution to the problem of failed to load module “Canberra GTK module” in Ubuntu