本来想用命令
npm uninstall -g angular-cli
npm cache clean or npm cache verify (if npm > 5)
npm install -g @angular/cli@latest
结果证明我还是太天真了
确实是不行
我决定以后都用狠招大招毒招来对待node和angular了
卸载node
删除 C:\Users\username\AppData\Roaming\里面的npm文件夹和npm-cache文件夹
安装最新版node
再次安装 cnpm
再次安装angular-cli
这次世界安静了
解决Node.js与Angular更新难题
博主分享了一次解决Node.js和Angular更新过程中遇到的问题经历,包括使用命令尝试更新失败,最终采用彻底卸载Node.js,清理npm缓存,重新安装最新版Node.js及Angular-cli的解决方案。
171

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



