You need to install 'webpack-dev-server' for running 'webpack serve'. Error: Cannot find module 'ajv/dist/compile/codegen'
I getting error like this when give npm install to run React application. Please give solution to solve this issue.
I had the same issue when I used JHipster, which I solved by running this command
npm install --save-dev ajv@^7
Thanks to this answer