I tried to update my angular 9 to 10. It shows this error
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'
Meanwhile I had a project from angular 8. So I tried to update it too. There also comes this error
H:\Chale\ANGULAR\certistore>ng update
The installed Angular CLI version is older than the latest stable 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\.ng-temp-packages-jMRO8x\node_modules\@angular\cli\node_modules\uuid'
How can I update my angular to newest?