最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

由于已弃用的circular

IT培训 admin 7浏览 0评论

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

然后你可以创建角项目。

由于已弃用的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. 暂无评论