Angular CLI 7 New Project Fails due to CircularJSON

I have tried accepted answer's solution but nothing happened.

Thus after some search I found a solution for me. May be it could help someone else

npm cache clean --force

You should be looking at the error details.

npm WARN deprecated [email protected]: CircularJSON is in maintenance 
only, flatted is its successor.

According to it [email protected] is deprecated. You should use flatted. A super light (0.5K) and fast circular JSON parser, directly from the creator of CircularJSON. The future of CircularJSON is called flatted.

Smaller, faster, and able to produce on average a reduced output too, flatted is the new, bloatless, ESM and CJS compatible, circular JSON parser.

install it using: npm i flatted