Angular 4 - “tree.branch is not a function” when trying to start a new project

前端 未结 2 1868
旧巷少年郎
旧巷少年郎 2021-02-11 07:13

When I run ng new testApp I get this error

Error: tree.branch is not a function
tree.branch is not a function

My node version is

2条回答
  •  独厮守ぢ
    2021-02-11 08:01

    I had the same issue with npm 5.5.1 node 8.8.1 and angular cli 1.4.9 (latest from everything)

    It failed always, when I was running it anywhere else than the $HOME directory.

    But it worked in the $HOME

    So I just create projects in $HOME and then I move to the final location.

提交回复
热议问题