This guide will walk you through how to setup and use a pre-release or experimental build of Ignite CLI.
- Node 7.6+
- NPM 4 (ships with Node 7)
- Yarn 20.3+
If you're on a Mac, you can use one of these techniques:
First, if you already have a copy of Ignite 1 or Ignite CLI installed with npm
, uninstall it with the commands listed below.
Exact one depends on what you may have installed previously:
npm rm -g ignite
npm rm -g ignite-cli
npm rm -g react-native-ignite
Clone Ignite CLI's repository from https://github.com/infinitered/ignite to your local development machine.
Note: Depending on the version of Ignite CLI you are targeting, you may be cloning a forked repository of Ignite CLI and the git URLs may look different.
[email protected]:infinitered/ignite.git
cd ignite
Now use yarn
to install Ignite CLI:
yarn
Next make the ignite
command available globally. To do this, run yarn link
:
yarn link
Note: If you get an error at this point, it is probably related to not removing a previously installed version of Ignite CLI. See the commands above to uninstall Ignite CLI.
To test your installation of Ignite CLI, let's try generating a new project. Navigate to a new directory where you'd like to create a new project and run the ignite new
command:
cd ~
ignite new MyApp
Again, if you are having issues, the Infinite Red Community Slack may be able to help. You can find us by visiting http://community.infinite.red and then joining the
#ignite
channel.