尝试使用命令安装angular cli时
sudo npm install -g @angular/cli
Run Code Online (Sandbox Code Playgroud)
它似乎赶上了一个错误循环与下面的消息
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/@angular/cli/node_modules/node-sass/.node-gyp"
gyp verb tmpdir == cwd automatically will remove dev files after to save disk space
gyp verb command install [ '8.9.4' ]
gyp verb install input version string "8.9.4"
gyp verb install installing version: 8.9.4
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version not already installed, continuing with install 8.9.4
gyp verb ensuring …Run Code Online (Sandbox Code Playgroud)