repository is not clean. please commit or stash any changes before updating. npm code example
Example 1: ng update repository not clean
ng update @angular/cdk @angular/cli @angular/core rxjs --allow-dirty
Example 2: Repository is not clean. Please commit or stash any changes before updating.
--allow-dirty