title: react native failed to install firebase
body: <p>I am trying to install firebase to my react native project. To do so I have tried several ways based on few sources. I open cmd, move to the project's directory, and tried these:</p>
  
  <ol>
  <li><p><code>npm install --save firebase</code></p></li>
  <li><p><code>npm install firebase --save</code></p></li>
  <li><p><code>npm i react-native-firebase --save</code></p></li>
  </ol>
  
  <p>But unfortunately, none of this is able to install the firebase to my react native project. For the no 1 and 2, it says:</p>
  
  <pre><code>npm ERR! Cannot read property 'find' of undefined
  </code></pre>
  
  <p>For no 3 it says:</p>
  
  <pre><code>npm ERR! path C:\Users\User\AndroidStudioProjects\auth\node_modules\react-native-firebase
  npm ERR! code ENOENT
  npm ERR! errno -4058
  npm ERR! syscall rename
  npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\User\AndroidStudioProjects\auth\node_modules\react-native-firebase' -&gt; 'C:\Users\User\AndroidStudioProjects\auth\node_modules\.react-native-firebase.DELETE'
  npm ERR! enoent This is related to npm not being able to find a file.
  npm ERR! enoent
  </code></pre>
  
  <p>And of course when I tried to import the firebase and run my apps, is shows error code 500 with failed to resolve firebase.</p>