node -v
v4.5.0
npm -v
5.0.1
有没有人在 Windows 10 中安装 angular-cli 时遇到过这种问题?
最佳答案
请尝试以下操作:
第 0 步:运行这个命令
npm uninstall -g @angular/cli
npm cache clean
第 1 步:删除此文件夹:
C:\Users\%YOUR-USERNAME%\AppData\Roaming\npm
第 2 步:从 Windows 卸载 Nodejs
第 3 步:重启你的电脑
第 4 步:从这里安装 Nodejs 的新副本:https://nodejs.org/en/
第 5 步:全局安装 CLI
npm install -g @angular/cli@latest
关于node.js - Windows 10 中的 npm 安装错误 ( npm install -g angular-cli ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44416465/