Schematic input does not validate against the Schema: {“name”:“testng7”} on Angular 7

前端 未结 6 2112
渐次进展
渐次进展 2020-12-16 18:39

I updated the Angular CLI to the latest @angular/cli@7.0.2 on a Mac OS. When issuing the command ng new testng7, I get this error:

         


        
6条回答
  •  旧巷少年郎
    2020-12-16 19:08

    This error is possible of avoiding naming standards

    Project name can not have underscore '_'. It can have dashes '-', small and capital letters and digits.

    Valid Project Names

    myProject //camel casing style or JavaScript style
    
    MyProject //normal style
    
    MyProject1 //letters and numbers mixed style
    
    My-Project1 //letters, numbers and dash mixed style
    

    Invalid Project Names

    MyProject-1 //dash can not be between letter and digit
    
    My_Project //underscore is restricted
    

提交回复
热议问题