Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ng new gives dryRunSink.(...).concat is not a function error

I am trying to create a new angular project. I followed the steps mentioned in this site. https://github.com/angular/angular-cli

When I try to create a new project using ng new command, I get error.

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

Here is the result of ng serve

Angular CLI: 1.6.4
Node: 6.11.4
OS: win32 x64

Edit: Looks like everyone is getting this error. https://github.com/angular/angular-cli/issues/9194

like image 509
fhnaseer Avatar asked Dec 03 '22 20:12

fhnaseer


1 Answers

Here is the link to git issue: https://github.com/angular/devkit/issues/380

Solution (temporary solution until they fix the issue): Adding the following lines to the package.json fixes the problems

"@angular-devkit/schematics":"0.0.42", 
"@angular-devkit/core": "0.0.23", 

To create new project run the following command

npm i @angular-devkit/[email protected] @angular/cli --no-save

These solutions were provided in the git issue,

like image 95
fhnaseer Avatar answered Jan 17 '23 19:01

fhnaseer