由于已弃用的circular
我用以下命令创建了新的角度项目
ng new hello-world
它失败了
npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor.
npm ERR! Unexpected end of JSON input while parsing near '...rocess":"~0.7.0"},"_h'
然后我安装平板使用...
npm i flatted
但错误仍然存在。如何使用flatted而不是deprecated library circular-json?
回答如下:运行以下命令清理NPM缓存
npm cache clean --force
在此运行以下命令之后
npm install -g @ angular / cli @ latest
然后你可以创建角项目。