Rohit Khatri
Rohit Khatri

Reputation: 2018

Issue while ng new app-name angular cli 6.0.4

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?

Upvotes: 0

Views: 1549

Answers (2)

Kasiriveni
Kasiriveni

Reputation: 5921

Looks like the new 6.0.5 version fixed this issue

more info

Upvotes: 1

AkshayP
AkshayP

Reputation: 106

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.

Upvotes: 1

Related Questions