npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Duplicate identifier 'LibraryManagedAttributes'.(Error)

Guys, I have a weird problem, when I npm install I’m getting below error sometimes, when I update types packages to latest version issue is getting resolved .is there any other fix for this Types error?
TS2300: Duplicate identifier ‘LibraryManagedAttributes’.

i googled it and everyone saying about the usage of yarn resolutions, is there any npm alternatives for yarn resolutions ? or any other good fixes ?