使用管理访问权限运行NodeJs 命令提示符(以管理员身份运行)并通过点击命令安装 AngularCli -
npm install -g @angular/cli
以管理员身份运行命令提示符并尝试命令
npm install -g -f angular-cli
It could be because you are behind a corporate firewall.
In this case, you need to set the npm proxy settings
npm config set proxy http://proxy.com:port
npm config set https-proxy http://proxy.com:port
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.