我在Mac OS上将Angular CLI更新为最新的@ angular / cli @ 7.0.2.发出命令ng new testng7时,我收到此错误:
Schematic input does not validate against the Schema: {"name":"testng7"} Errors: Data path "" should have required property 'version'.
什么也没有创造.任何线索如何解决?
解决方法
此错误可能会避免命名标准
项目名称不能有下划线’_’.它可以有短划线’ – ‘,小写和大写字母和数字.
有效的项目名称
myProject //camel casing style or JavaScript style MyProject //normal style MyProject1 //letters and numbers mixed style My-Project1 //letters,numbers and dash mixed style
项目名称无效
MyProject-1 //dash can not be between letter and digit My_Project //underscore is restricted