Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I installed latest Angular 6.0.4 in MAC, when I enter in terminal:

ng new happiness

display:

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).

Anyone can tell me? Thanks a lot

like image 877
Bob Zheng Avatar asked May 25 '18 03:05

Bob Zheng


2 Answers

Maybe Angular 6.0.5 version

npm update
npm uninstall -g @angular/cli
npm cache verify
npm install -g @angular/[email protected]
ng new --name my-app

Another thread is same: Issue while ng new app-name angular cli 6.0.4

like image 62
Tung Duong Avatar answered Sep 27 '22 20:09

Tung Duong


Can you try following:

ng update @angular/cli --migrate-only --from=1.7.4

there was an issue. You can find here.

like image 40
Anshuman Jaiswal Avatar answered Sep 27 '22 20:09

Anshuman Jaiswal