ng new给出dryRunSink.(...).concat不是函数错误

fhn*_*eer 4 angular-cli angular

我正在尝试创建一个新的角度项目.我按照本网站提到的步骤进行操作.https://github.com/angular/angular-cli

当我尝试使用ng new命令创建一个新项目时,我收到错误.

E:\Code\> ng new some-name
Error: dryRunSink.commit(...).ignoreElements(...).concat is not a function
dryRunSink.commit(...).ignoreElements(...).concat is not a function
Run Code Online (Sandbox Code Playgroud)

这是结果 ng serve

Angular CLI: 1.6.4
Node: 6.11.4
OS: win32 x64
Run Code Online (Sandbox Code Playgroud)

编辑:看起来每个人都收到此错误.https://github.com/angular/angular-cli/issues/9194

fhn*_*eer 9

这是git问题的链接:https://github.com/angular/devkit/issues/380

解决方案(临时解决方案,直到他们解决问题):将以下行添加到package.json可以解决问题

"@angular-devkit/schematics":"0.0.42", 
"@angular-devkit/core": "0.0.23", 
Run Code Online (Sandbox Code Playgroud)

要创建新项目,请运行以下命令

npm i @angular-devkit/schematics@0.0.45 @angular/cli --no-save
Run Code Online (Sandbox Code Playgroud)

这些解决方案是在git问题中提供的,