angular - 完全卸载 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 版本
有什么帮助吗??
解决方案
这似乎发生在 Node v13 上;降级到 LTS v12.16.3 或升级到最新的 v14.2.0。
推荐阅读
- reactjs - react-router-dom - TypeError:无法读取未定义的属性(读取“路径名”)
- xml - 如何在 Flutter 中读取 XML 文件?
- typescript - IF 语句中的详尽类型检查
- python - 无法在 PyQt5 中映射 icu 数据文件
- java - Wait.on(signals) 在 Apache Beam JAVA 中的使用
- xpath - xpath 导致 2 个元素如何使其更具体?
- flutter - 如何使用 Flutter 桌面发送电子邮件
- php - 用户在添加产品时如何添加新属性?
- frama-c - 切片:在 struct iphdr 类型中找不到字段 saddr
- authentication - hostapd 2.9 不支持 2 个服务器证书