Recently I started getting this issue, when I install a react-native package (eg: react-navigation) into my project, a whole bunch of packages are been removed
react-navigation
Found the solution here.
At first running npm install didn't work, but then, deleting the package-lock.json file and running npm install did the job.
npm install
package-lock.json
After that I installed react-navigation package seperately and it worked fine.