When I run ng new testApp I get this error
ng new testApp
Error: tree.branch is not a function tree.branch is not a function
My node version is
Remove the node_modules folder from your $HOME directory
cd $HOME rm -rf node_modules
For some reason the node_modules folder was in the $HOME directory and ng CLI was using it.