Angular 9 ng new myapp给出错误原理图工作流程失败 [英] Angular 9 ng new myapp gives error The Schematic workflow failed

查看:402
本文介绍了Angular 9 ng new myapp给出错误原理图工作流程失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了angular 9

I have angular 9 installed

Angular CLI:9.0.1节点:13.8.0 OS:win32 x64

Angular CLI: 9.0.1 Node: 13.8.0 OS: win32 x64

角度:...常春藤工作区:

Angular: ... Ivy Workspace:

@ angular-devkit/architect 0.900.1
@ angular-devkit/核心9.0.1
@ angular-devkit/schematics 9.0.1
@ schematics/角度9.0.1
@ schematics/更新0.900.1
rxjs 6.5.3

@angular-devkit/architect 0.900.1
@angular-devkit/core 9.0.1
@angular-devkit/schematics 9.0.1
@schematics/angular 9.0.1
@schematics/update 0.900.1
rxjs 6.5.3

每次我尝试使用ng new创建一个新项目时,我都会收到消息

Everytime i try to create a new project with ng new, I'm getting the message

正在安装软件包... npm WARN已弃用request@2.88.2:已弃用该请求,请参见 https://github.com/request/request/issues/3142 npm ERR!解析"... pm-signature"附近的JSON输入时意外结束:"----- B" npm ERR!可以在以下位置找到此运行的完整日志: npm ERR! C:\ Users \ Lijo John Daniel \ AppData \ Roaming \ npm-cache_logs \ 2020-02-12T09_52_57_342Z-debug.log ×软件包安装失败,请参见上文. 原理图工作流程失败.见上文.

Installing packages...npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! Unexpected end of JSON input while parsing near '...pm-signature":"-----B' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Lijo John Daniel\AppData\Roaming\npm-cache_logs\2020-02-12T09_52_57_342Z-debug.log × Package install failed, see above. The Schematic workflow failed. See above.

我尝试重新安装角度甚至节点,但问题仍然存在

I have tried re-installing angular and even node but issue still remains

我的操作系统版本是Win 10 v.1909 build 18363.592.有人可以帮我吗?

My OS version is Win 10 v.1909 build 18363.592. Can someone help me with this?

推荐答案

尝试使用以下方法清理 npm缓存:

Try to clean the npm cache using:

npm cache clean --force

那它现在应该可以工作吗

then should it works now,

ng new my-app

这篇关于Angular 9 ng new myapp给出错误原理图工作流程失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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