新博客地址:https://blog.iaiot.com/bash-ng-command-not-found.html
重新以管理员权限运行 npm install -g @angular/cli
如果报错,就先删掉 C:\Users\adminstrator\AppData\Roaming\npm\node_modules\@angular\cli\node_modules 目录,然后再运行 npm install -g @angular/cli
等安装完成后 ng version 就可以了

本文提供了当遇到Angular CLI安装失败时的解决方案,包括以管理员权限重新安装,删除特定目录后再尝试,以及检查安装完成后的版本。
新博客地址:https://blog.iaiot.com/bash-ng-command-not-found.html
重新以管理员权限运行 npm install -g @angular/cli
如果报错,就先删掉 C:\Users\adminstrator\AppData\Roaming\npm\node_modules\@angular\cli\node_modules 目录,然后再运行 npm install -g @angular/cli
等安装完成后 ng version 就可以了


被折叠的 条评论
为什么被折叠?