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

前端 未结 6 2121
渐次进展
渐次进展 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:04

    I was having the same problem

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

    Errors:

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

    do the following steps to resolve this issue

    1) uninstall -g angular-cli

    2) npm uninstall --save-dev angular-cli

    3) npm install -g @angular/cli@latest

    4) npm install --save-dev @angular/cli@latest

    5) npm install -g

    6) ng new YourProjectName

    i hope it will work

提交回复
热议问题