问题
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