首页 > 解决方案 > 完全卸载 Angular 和 NodeJs 并重新安装

问题描述

我正在尝试完全卸载 angular 和 nodeJs 并重新安装它们。我使用这些代码来卸载 Angular

npm uninstall -g @angular/cli
npm cache clean --force

对于节点卸载,我找不到代码。有什么帮助吗??我这样做是因为我收到了这个错误

C:\Users\chalani>ng update @angular/cdk --next
The installed local Angular CLI version is older than the latest pre-release version.
Installing a temporary version to perform the update.
Installing packages for tooling via npm.
Installed packages for tooling via npm.
Unknown error: Error: No valid exports main found for 'C:\Users\chalani\AppData\Local\Temp\angular-cli-packages-BuVCKr\node_modules\@angular\cli\node_modules\uuid'

更新到新版本以及任何ng命令时,即使是ng 版本

有什么帮助吗??

标签: angularversion

解决方案


这似乎发生在 Node v13 上;降级到 LTS v12.16.3 或升级到最新的 v14.2.0。


推荐阅读