npm ERR! Unexpected end of JSON input while parsing near... in Angular 6

Posted at: October 2, 2018 9:04 PM

Fixed this issue using below commands.

If error is coming like this npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor. Then see below solution.


circular-json@0.5.9 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.

npm ERR JSON input

Please leave comments