我刚刚升级到 Angular 7,尝试创建新项目时出现以下错误:
原理图输入未针对架构进行验证:{"name":"test"} 错误:数据路径“”应该具有必需的属性“版本”。
Angular CLI: 7.3.4
Node: 10.15.2
OS: darwin x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.13.4
@angular-devkit/core 7.3.4
@angular-devkit/schematics 7.3.4
@schematics/angular 7.3.4
@schematics/update 0.13.4
rxjs 6.3.3
typescript 3.2.4
MacBook-Pro-de-Pastor:~ pacozevallos$ ng new test
Schematic input does not validate against the Schema: {"name":"test"}
Errors:
Data path "" should have required property 'version'.
MacBook-Pro-de-Pastor:~ pacozevallos$
更新 Angular 7 后,我使用以下命令重新安装了它:
npm uninstall -g @angular/cli (add sudo in the start if using Linux)
npm cache clean --force / npm cache verify
npm install -g @angular/cli
但是最后一个也没有用。
有任何想法吗?