cli command ng new not working for angular 7

≯℡__Kan透↙ 提交于 2019-12-13 00:56:04

问题


Just updated my cli, npm, ng and nodejs to latest versions. An ng v gives this:

Angular CLI: 7.0.2
Node: 8.12.0
OS: darwin x64
Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.10.2
@angular-devkit/core         7.0.2
@angular-devkit/schematics   7.0.2
@schematics/angular          7.0.2
@schematics/update           0.10.2
rxjs                         6.3.3
typescript                   3.1.3

Update old Angular 6 projects successfully also. However, upon issuing the command ng new myproj, I get the result:

Schematic input does not validate against the Schema: {"name":"myproj"}
Errors:

  Data path "" should have required property 'version'.

The issue is so fresh there isn't how-to-fix online. Any help?

来源:https://stackoverflow.com/questions/52920355/cli-command-ng-new-not-working-for-angular-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!