0

I have installed angular cli 6.0.4 using npm install -g @angular/cli and when I try to create a new project using this command ng new my-first-app It's throwing the following error:

Schematic input does not validate against the Schema: {"dryRun":false,"version":"6.0.4","skipGit":false,"skipInstall":false,"linkCli":false,"commit":true,"newProjectRoot":"projects","inlineStyle":false,"inlineTemplate":false,"routing":false,"prefix":"app","style":"css","skipTests":false}
Errors:

Data path "" should NOT have additional properties(dryRun).

How can I fix this?

Shashank Vivek
  • 16,888
  • 8
  • 62
  • 104
Rohit Khatri
  • 1,980
  • 3
  • 25
  • 45

2 Answers2

1

Here, refer this link and this. Similar error.

Try these possible options:

  1. Uninstall current angular/cli and try downloading some older version.
  2. Update node version and delete npm cache.
  3. Better still, if your sole aim is angular 6 then a workaround could be to download example and get rid of unwanted files and install all the packages you need.
AkshayP
  • 106
  • 1
  • 9
1
Looks like the new 6.0.5 version fixed this issue

more info

Kasiriveni
  • 5,671
  • 1
  • 22
  • 31
  • Unfortunately, due to some issue found after doing the 6.0.4 release, we were forced to rollback. This release is the same as 6.0.3. – Kasiriveni May 25 '18 at 06:23