Error when Installing

I get the following error when installing on macOS Monterrey 12.3, PHP 8 dev environment:

#begin terminal
❯ npm run dev

> dev
> npm run development


> development
> mix

[webpack-cli] Error: Cannot find module 'del'
Require stack:
- /Users/luisdeleon/PhpstormProjects/laravel-metronic/webpack.mix.js
- /Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/laravel-mix/setup/webpack.config.js
- /Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/webpack-cli/lib/webpack-cli.js
- /Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/webpack-cli/lib/bootstrap.js
- /Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/webpack-cli/bin/cli.js
- /Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/webpack/bin/webpack.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/Users/luisdeleon/PhpstormProjects/laravel-metronic/webpack.mix.js:7:13)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/luisdeleon/PhpstormProjects/laravel-metronic/webpack.mix.js',
'/Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/laravel-mix/setup/webpack.config.js',
'/Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/webpack-cli/lib/webpack-cli.js',
'/Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/webpack-cli/lib/bootstrap.js',
'/Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/webpack-cli/bin/cli.js',
'/Users/luisdeleon/PhpstormProjects/laravel-metronic/node_modules/webpack/bin/webpack.js'
]
}
#end terminal 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 (2)

I was able to get self support! happy
npm install del-cli

Thanks!

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. happy

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  :(