简体   繁体   中英

While run the React application getting error

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM