'npm run prod-build --no-interactive taking too long

I'm using angular 11.2.18 after the angular upgrade, the build is taking a too long time to build.

Command i'm using is => npm run prod-build --no-interactive

FYI Node version - 14.18.3



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source