The npm install [package] command is removing other packages previously installed.
If I run npm install [package b], it will install package b but remove package a. This occurs vice versa with other packages.
This happens when install the ng-bootstrap dependency using the following command npm install --save @ng-bootstrap/ng-bootstrap and later install the following dependency npm install ng2-ion-range-slider --save, in this case ng-bootstrap dependency is removed of my node_modules. My questions is why this happens? What is the explanation of this strange behavior? 
In my case it happened due to outdated package-lock.json (it was not commited to git after latest package.json change).
Solution: do plain npm i  to fix your package-lock.json
After this npm i [packages] should work as expected
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With