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.