When I do a fresh install of laravel 5.7, and run npm install, I get this 1 high severity vulnerability about the Missing Origin Validation of the webpack-dev-server.
I am not able to get rid of this. When I run npm i webpack-dev-server
It will start giving me all kinds of peers that I need to install. For instance:
[email protected] requires a peer of ajv@^6.0.0 but none is installed.
etc.etc.
I tried doing this manually but in the end I get stuck.
In another project, v5.6 I also have this problem. But there I am also not able to run npm run dev anymore.
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
events.js:167
throw er; // Unhandled 'error' event
^