title: How can I run "npx react-native init MyApp" and choose a different web directory, and avoid unexpected end of file?
body: <p>On an ordinary unsecure machine, &quot;npx react-native init MyApp&quot; works fine.</p>
  <p>On a highly secure machine (uses Zscaler or VPN, proxy, ssl certs, and mcaffee) &quot;npx react-native init MyApp&quot; does not work. I get an unexpected end of file, like so:</p>
  <pre><code>error An unexpected error occurred: 
  &quot;https://registry.yarnpkg.com/react-native/-/react-native-0.66.4.tgz: 
  unexpected end of file&quot;.
  </code></pre>
  <p>I used Postman to hit <a href="https://registry.yarnpkg.com/react-native" rel="nofollow noreferrer">https://registry.yarnpkg.com/react-native</a> and discovered the tarball actually has different location:</p>
  <pre><code>https://registry.npmjs.org/react-native/-/react-native-0.66.4.tgz&quot;,
  </code></pre>
  <p>and I successfully pulled it from there.</p>
  <p>1 Why does the secure machine attempt to pull it from the wrong directory?</p>
  <p>2 Why does the non-secure machine successfully use the npx init?</p>
  <p>3 How can I fix this so that init works on the secure machine?</p>