我如何摆脱这个角度错误消息 [英] How do I get rid of this angular error message

查看:89
本文介绍了我如何摆脱这个角度错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试创建带有角度的新项目时,我在命令提示符下使用了 ng new my-dream-app 命令,并收到以下错误消息:

While trying to create a new project with angular, I used the command ng new my-dream-app in command prompt and I receiver the following error message:

 Installing packages...npm WARN deprecated tslint@6.1.1: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated fsevents@1.2.12: fsevents 1 will break on node v14+. Upgrade to fsevents 2 with massive improvements.
npm ERR! Unexpected end of JSON input while parsing near '...t-config-prettier":"^'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Izormen Onotieose\AppData\Roaming\npm-cache\_logs\2020-04-21T14_21_50_827Z-debug.log
× Package install failed, see above.

请问我该怎么办?

推荐答案

似乎是缓存错误。尝试以下操作:

It looks like it is a cache error. Try this:

npm cache clean --force
npm install -g @angular/cli

干杯!

这篇关于我如何摆脱这个角度错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆