ignite icon indicating copy to clipboard operation
ignite copied to clipboard

You don't seem to have a generator with the name react-native-ignite installed.

Open ron-liu opened this issue 10 years ago • 4 comments

I followed the guide to start. Firstly, I type

npm install -g react-native-ignite

It looks all good. and then when I type

ignite new aaaa

It complains as below:

You don't seem to have a generator with the name react-native-ignite installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 15 registered generators run yo with the `--help` option.

ron-liu avatar Jun 30 '16 03:06 ron-liu

Normally react-native-ignite installs generator-react-native-ignite for you. which is the Generator in question. Go ahead and do npm i generator-react-native-ignite -g and please let us know if that solves your issue.

Cheers!

GantMan avatar Jun 30 '16 15:06 GantMan

it doesn't help, I mean installs generator-react-native-ignite.

Now I fixed the issue. It is because I used to have a system node.js installation with an old yo installed too, and later I switched to nvm. For some reason, the new installed yo (located in /Users/{my-name}/.nvm/... ) didn't take effect. "yo" still pointed to the system node.js which is located in /usr/local/... The easiest way to tell is run command "yo -v", in may case, I got "1.1.x" which was very old.

To solve the problem, just delete /usr/local/bin/yo, and delete /usr/local/lib/node_modules (since I will stick to nvm), and install ignite again, all fixed.

ron-liu avatar Jul 01 '16 06:07 ron-liu

@ron-liu thanks for the info! We will reference this in the future 👍

GantMan avatar Jul 01 '16 13:07 GantMan

Installing the module as npm i generator-react-native-ignite -g solved it for me. Thank you @GantMan

bhushanjawle avatar Feb 14 '17 09:02 bhushanjawle