mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Deploy website
Deploy website version based on 8dcfd159fa9bf22376a0914f4d96f4c06e63d72e
This commit is contained in:
@@ -74,7 +74,11 @@
|
||||
<pre><code class="hljs css language-sh">npx react-native init MyApp --template react-native-template-typescript
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p><strong>Note</strong> If the above command is failing, you may have old version of <code>react-native</code> or <code>react-native-cli</code> installed globally on your pc. Try uninstalling the cli and run the cli using <code>npx</code>.</p>
|
||||
<p><strong>Note:</strong> If the above command is failing, you may have old version of <code>react-native</code> or <code>react-native-cli</code> installed globally on your system. To fix the issue try uninstalling the CLI:</p>
|
||||
<ul>
|
||||
<li><code>npm uninstall -g react-native-cli</code> or <code>yarn global remove react-native-cli</code></li>
|
||||
</ul>
|
||||
<p>and then run the <code>npx</code> command again.</p>
|
||||
</blockquote>
|
||||
<p>You can use <a href="https://expo.io">Expo</a> which has two TypeScript templates:</p>
|
||||
<pre><code class="hljs css language-sh"><span class="token function">npm</span> <span class="token function">install</span> -g expo-cli
|
||||
|
||||
@@ -74,7 +74,11 @@
|
||||
<pre><code class="hljs css language-sh">npx react-native init MyApp --template react-native-template-typescript
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p><strong>Note</strong> If the above command is failing, you may have old version of <code>react-native</code> or <code>react-native-cli</code> installed globally on your pc. Try uninstalling the cli and run the cli using <code>npx</code>.</p>
|
||||
<p><strong>Note:</strong> If the above command is failing, you may have old version of <code>react-native</code> or <code>react-native-cli</code> installed globally on your system. To fix the issue try uninstalling the CLI:</p>
|
||||
<ul>
|
||||
<li><code>npm uninstall -g react-native-cli</code> or <code>yarn global remove react-native-cli</code></li>
|
||||
</ul>
|
||||
<p>and then run the <code>npx</code> command again.</p>
|
||||
</blockquote>
|
||||
<p>You can use <a href="https://expo.io">Expo</a> which has two TypeScript templates:</p>
|
||||
<pre><code class="hljs css language-sh"><span class="token function">npm</span> <span class="token function">install</span> -g expo-cli
|
||||
|
||||
Reference in New Issue
Block a user