npm ERR! Unexpected end of JSON input while parsing near... in Angular 6
Fixed this issue using below commands.
If error is coming like this npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor. Then see below solution.
[email protected] is deprecated. The future of this module is called flatted. So you should flatted. flatted: A super light (0.5K) and fast circular JSON parser, directly from the creator of CircularJSON.
Smaller, faster, and able to produce on average a reduced output too, flatted is the new, bloatless, ESM and CJS compatible, circular JSON parser.
You can run this command.