Ignite: react-native-cli must be installed globally?

Created on 20 Jun 2017  Â·  9Comments  Â·  Source: infinitered/ignite

./node_modules/.bin/ignite new PizzaApp
Missing react-native-cli. Install with npm i -g react-native-cli and try again.

Well, what if I don't want to install react-native-cli globally? I have different versions of react native for every project. So having the globally installed react-native/react-native-cli doesn't make any sense for me.

enhancement question

Most helpful comment

Install globally using following command

yarn global add react-native-cli
yarn global add ignite-cli

All 9 comments

react-native-cli will dispatch the commands to your project’s react-native cli. You should be fine to set it up globally.

We only use it for the init command though.

How do you set up new React Native projects on your end without a global install?

@skellock thanks for the response.

How do you set up new React Native projects on your end without a global install?

yarn add react-native-cli
./node_modules/.bin/react-native-cli init

I don't create new projects every day usually. So it's totally fine to add extra ./node_modules/.bin/

My point is that if a package depends on another package this dependency should be declared explicitly (in package.json)

I didn't realize you could create the projects like that. Interesting. I'm on mobile atm, but I'll give that a shot. If it's supported by react-native, then we can problem add support for this too.

Interesting.

Install globally using following command

yarn global add react-native-cli
yarn global add ignite-cli

Globally installing react-native-cli is the official way to initialize a react-native project. At this point it is unlikely that we will support this abnormal use-case, unless someone wants to submit it as a pull request.

react-native is not recognized as an internal or external command operable program or batch file
i try it all but nothing work

@mact200590 Can you run react-native from your command line?

thanks a lot, i just dele all the modules, and install de depencies again

El mié., 15 may. 2019 a las 13:37, Jamon Holmgren (notifications@github.com)
escribió:

@mact200590 https://github.com/mact200590 Can you run react-native from
your command line?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/infinitered/ignite/issues/1088?email_source=notifications&email_token=ALWN7WLBTWKPBVUW7XQZYJ3PVQ33RA5CNFSM4DP456X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVPHLUY#issuecomment-492729811,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALWN7WOMEKKJKOUWYV54N6LPVQ33RANCNFSM4DP456XQ
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GantMan picture GantMan  Â·  3Comments

GantMan picture GantMan  Â·  3Comments

besingamkb picture besingamkb  Â·  3Comments

wisn picture wisn  Â·  3Comments

jamonholmgren picture jamonholmgren  Â·  3Comments