I am new in angular 4. I am trying to create new Component using angular CLI.
command : ng generate component myFolder/newComponent
But I am getting below error:
Error: tree.branch is not a function
tree.branch is not a function.
It probably comes from your angular-cli installation/version. Try to uninstall/re-install it :
Re-install generally
npm uninstall -g @angular/cli
npm install -g @angular/cli
Re-install for a local project :
npm uninstall --save @angular/cli
npm install --save @angular/cli
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With