I had the same error as the OP, but digging through the logs I could see sh: node: command not found
.
It turns out that the /usr/bin/node program (symlink) is no longer installed with apt install nodejs
. Once symlinked /usr/bin/node' to
nodejs,
npm install -g @angular/cli` succeeded.
The proper way to install this on debian is apt install nodejs-legacy
.