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

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

问题描述

我安装了 angular 9

I have angular 9 installed

Angular CLI:9.0.1 节点:13.8.0 操作系统:win32 x64

Angular CLI: 9.0.1 Node: 13.8.0 OS: win32 x64

Angular:...常春藤工作区:

Angular: ... Ivy Workspace:

@angular-devkit/architect 0.900.1
@angular-devkit/core 9.0.1
@angular-devkit/schematics 9.0.1
@schematics/angular 9.0.1
@原理图/更新 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/3142npm 错误!解析 '...pm-signature":"-----B' 附近时 JSON 输入意外结束npm 错误!可以在以下位置找到此运行的完整日志:npm 错误!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.

我尝试重新安装 angular 甚至 node,但问题仍然存在

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 缓存内存

First ,verify your NPM cached memory

npm cache verify

然后尝试:

npm cache clean --force
npm install –g @angular/cli@latest 
ng new <YourProjectName>

如果问题仍然存在,请尝试以下操作

If the problem persists, then try the following

npm cache clean --force
npm update
ng new <YourProjectName>

注意
正如@0210vidit 在下面的评论中所说:

不要在命名中使用破折号(-)或(.)

NOTE
As @0210vidit said in the comment below:

do not use dash(-) or (.) in naming

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

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