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:
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