not working npx react-native init MyApp --template react-native-template-typescript
// ================ react-native-template-typescript =====================
########### This template only works with the new CLI.###############
first check if you have right react-native-cli intall
check via
)=====> react-native-cli -v
if exixst uninstall
)=====> npm uninstall -g react-native-cli
)=====> yarn global remove react-native-cli
now install again.
)=====> npm i -g @react-native-community/cli
===================if still not work now try this commant
)=====> npx --ignore-existing react-native init MyApp --template react-native-template-typescript
3
3
There seems to be quite some confusion about the legacy CLI.
This template only works with the new CLI.
Make sure you have uninstalled the legacy react-native-cli first (npm uninstall -g react-native-cli),
for the below command to work.
If you wish to not use npx
you can also install the new CLI globally (npm i -g @react-native-community/cli or yarn global add @react-native-community/cli).
Thank you!
3
0
Are there any code examples left?
New code examples in category TypeScript
-
TypeScript 2022-03-27 19:30:45 typescript promise
-
TypeScript 2022-03-27 17:25:44 how to search for imports in vscode
-
TypeScript 2022-03-27 17:15:20 angular formgroup mark as touched
-
TypeScript 2022-03-27 17:05:06 use of slice and splice add elements array
-
TypeScript 2022-03-27 16:50:23 android studio loop through all objects in layout
-
TypeScript 2022-03-27 14:35:08 wergensherts meaning
-
TypeScript 2022-03-27 13:50:15 remove all the elements from a numpy array python
-
TypeScript 2022-03-27 12:35:49 redux toolkit typescript install
-
TypeScript 2022-03-27 12:35:30 laravel middleware for apis