I had a similar issue while I was installing the React Native CLI. I wasn't sure which /node_modules
directory I was supposed to remove after reading the answers here. I eventually just ran
npm update -g
and was able to install the package after that.