Bug Laravel run dev command

[webpack-cli] Error: Cannot find module 'del'
Require stack:
- C:\xampp\htdocs\BleepalERP\webpack.mix.js
- C:\xampp\htdocs\BleepalERP\node_modules\laravel-mix\setup\webpack.config.js
- C:\xampp\htdocs\BleepalERP\node_modules\webpack-cli\lib\webpack-cli.js
- C:\xampp\htdocs\BleepalERP\node_modules\webpack-cli\lib\bootstrap.js
- C:\xampp\htdocs\BleepalERP\node_modules\webpack-cli\bin\cli.js
- C:\xampp\htdocs\BleepalERP\node_modules\webpack\bin\webpack.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\xampp\htdocs\BleepalERP\webpack.mix.js:7:13)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\xampp\\htdocs\\BleepalERP\\webpack.mix.js',
'C:\\xampp\\htdocs\\BleepalERP\\node_modules\\laravel-mix\\setup\\webpack.config.js',
'C:\\xampp\\htdocs\\BleepalERP\\node_modules\\webpack-cli\\lib\\webpack-cli.js',
'C:\\xampp\\htdocs\\BleepalERP\\node_modules\\webpack-cli\\lib\\bootstrap.js',
'C:\\xampp\\htdocs\\BleepalERP\\node_modules\\webpack-cli\\bin\\cli.js',
'C:\\xampp\\htdocs\\BleepalERP\\node_modules\\webpack\\bin\\webpack.js'
]
}


I solved this by adding 'del' to dependencies.

Please check in laravel files and update if this is an error.

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)

Hi,

We will fix it. As a workaround, please try to run this command.

npm install --save-dev del

Then proceed with the "npm run dev" command.

Thanks

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(