Comments (10)
@Mnjaro
I have the same issue. But I fix it by:
- Install latest cli version (now 2.9.0)
yarn global add @react-native-community/cli
npx react-native init MyApp --template react-native-template-typescript
In new version of cli you can see ASCII React logo
from react-native-template-typescript.
Yes, I had to do this, with npx doesnt work for me.
npm i --global @react-native-community/cli
react-native init MyApp --template react-native-template-typescript
Thanks
from react-native-template-typescript.
Went through the same problem - worth adding this to README faqs?
from react-native-template-typescript.
Can you try adding the --ignore-existing flag
npx --ignore-existing react-native init MyApp --template react-native-template-typescript
from react-native-template-typescript.
Best solution I found
Remove
npm uninstall -g react-native-cli
Create the folder where the project will be
mkdir [folder name] && cd [folder name]
Install the dependencies and everything will work
yarn init
yarn add react-native
yarn react-native init [Project Name] ...
from react-native-template-typescript.
Are you sure you are running the latest CLI version? Seems like you still have the old one installed. try running with npx --ignore-existing
flag.
from react-native-template-typescript.
Can you tell your current npm version? It's latest?
from react-native-template-typescript.
Can you tell your current npm version? It's latest?
npm v6.10.0
node v12.7.0
The latest is 6.12.0, but mine is near...
from react-native-template-typescript.
Sorry for the delay on the answer. It appears I didn't have the latest version of the CLI tool. The problem was that the old cli wasn't correctly removed. Thanks for the help.
from react-native-template-typescript.
Try update yarn.
Run curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
It helped me
from react-native-template-typescript.
Related Issues (20)
- How to create typescript related to react native 0.64.0 HOT 1
- Use error report
- React Native 69 will use iOS 12.4 as minimal version but we still recommends es2017 in TS config HOT 3
- can not run npx react-native init MyApp HOT 1
- Custom Path for 0.69+ not working HOT 1
- Typescript displays wrong messages.
- undefined is not a object(evaluating 'o[typeof Symbol === "function"?Symbol.iterator:"@@iterator"]')
- set 'no-unused-vars' prop value 'error' but doesn't work
- There is a Helloworld.xcworkspace file in the ios folder every time I use the typescript template. HOT 3
- The template lack deps `@types/react` HOT 4
- npx react-native init fails with latest typescipt template HOT 2
- How to reinstall all deps when cloning a repo initialized with this project? HOT 1
- Error: Couldn't find the "/template.config.js file inside "react-native" template. HOT 1
- Question HOT 1
- Android and iOS folders are missing while executing the command
- Using with specified version of RN doesn't work HOT 1
- Android app will not run after default init HOT 1
- An error is reported during initialization ? HOT 1
- Support for RN 0.71? HOT 1
- How can I install [email protected]? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-template-typescript.