答案 0 :(得分:0)
您已经卸载了cli并进行了安装
npm uninstall -g angular-cli npm uninstall --save-dev angular-cli
npm uninstall -g @angular/cli npm cache verify # if npm version is < 5 then use
`npm cache clean
`npm install -g @angular/cli@latest
rm -rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell
npm install --save-dev @angular/cli@latest npm install