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.<anonymous> (/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
Hi,
We will fix it. As a workaround, please try to run this command.
npm install --save-dev del
I was able to get self support!
npm install del-cli
Thanks!