Just reinstalled Angular CLI to version 7.1.1. When running ng new project-name
, the following error occurs:
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm ERR! code ERR_STREAM_WRITE_AFTER_END
npm ERR! write after end
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\[username]\AppData\Roaming\npm-cache\_logs\2018-12-04T20_40_23_399Z-debug.log
Package install failed, see above.
When changing into the project directory, the new Angular application cannot be served. How can this be repaired?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With