title: Error installing React Native: request to https://registry.npmjs.org/yallist failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443
body: <p>I am installing React Native by running the following command:</p>
  
  <pre><code>sudo npm install -g create-react-native-app
  </code></pre>
  
  <p>but I am getting the following error:</p>
  
  <pre><code>npm ERR! code EAI_AGAIN
  npm ERR! errno EAI_AGAIN
  npm ERR! request to https://registry.npmjs.org/yallist failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/zeusx/.npm/_logs/2017-08-16T05_07_19_737Z-debug.log
  </code></pre>
  
  <p>How can I fix it?</p>