数据路径“”不应具有附加属性(dryRun)

Bob*_*eng 6 macos angular-cli angular

当我在终端中输入时,我在 MAC 中安装了最新的 Angular 6.0.4:

ng new happiness
Run Code Online (Sandbox Code Playgroud)

展示:

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).
Run Code Online (Sandbox Code Playgroud)

谁能告诉我?非常感谢

小智 3

也许 Angular 6.0.5 版本

npm update
npm uninstall -g @angular/cli
npm cache verify
npm install -g @angular/cli@6.0.5
ng new --name my-app
Run Code Online (Sandbox Code Playgroud)

另一个线程是相同的: Issue while ng new app-name Angular cli 6.0.4