Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular CLI 7 New Project Fails due to CircularJSON

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?

like image 856
crayden Avatar asked Dec 04 '18 20:12

crayden


2 Answers

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
like image 93
WasiF Avatar answered Oct 11 '22 13:10

WasiF


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

like image 20
nircraft Avatar answered Oct 11 '22 15:10

nircraft