Code Monkey home page Code Monkey logo

Comments (10)

zmnv avatar zmnv commented on May 12, 2024 6

@Mnjaro

I have the same issue. But I fix it by:

  1. 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.

danibram avatar danibram commented on May 12, 2024 5

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.

omairvaiyani avatar omairvaiyani commented on May 12, 2024 4

Went through the same problem - worth adding this to README faqs?

from react-native-template-typescript.

carlosstenzel avatar carlosstenzel commented on May 12, 2024 1

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.

carlosstenzel avatar carlosstenzel commented on May 12, 2024 1

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.

radko93 avatar radko93 commented on May 12, 2024

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.

zmnv avatar zmnv commented on May 12, 2024

@danibram

Can you tell your current npm version? It's latest?

from react-native-template-typescript.

danibram avatar danibram commented on May 12, 2024

@danibram

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.

jarodevs avatar jarodevs commented on May 12, 2024

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.

mk1020 avatar mk1020 commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.