when i run command npm run build, ng command use a lot cpu

how to fix it, sorry for my english and thanks for watching.
when i run command npm run build, ng command use a lot cpu

how to fix it, sorry for my english and thanks for watching.
The fact that the production build uses a lot of your CPU is a good sign, it means that the production build is effectively trying to do the proper optimizations.
For development purposes, when you want the build to be much quicker, you should switch to a non-prod build
See your packages.json file, but essentially you should create or look for a build-dev script that calls ng build without --prod option.