Package can't be installed on Angular 14 as dependencies are unmet :
ng add ngx-scrolltop@latest
ℹ Using package manager: npm
⚠ Package has unmet peer dependencies. Adding the package may not succeed.
The package ngx-scrolltop@latest will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: myapp@1.0.0
npm ERR! Found: @angular/common@14.0.6
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"^14.0.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@">=12 <14" from ngx-scrolltop@4.1.2
npm ERR! node_modules/ngx-scrolltop
npm ERR! ngx-scrolltop@"4.1.2" from the root project
Package can't be installed on Angular 14 as dependencies are unmet :