最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

由于已弃用的circular

运维笔记admin10浏览0评论

由于已弃用的circular

由于已弃用的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

然后你可以创建角项目。

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论