colindresj / generator-ractive

Yeoman generator for Ractive.js with out of the box support for AMD and Browserify
7 stars 3 forks source link

ractive:component or ractive:ractive does not work #3

Open thg303 opened 8 years ago

thg303 commented 8 years ago
yo ractive:component page
Error ractive:component page 

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

yo version: 1.7.0 os: ubuntu 14.04.4 npm: 3.8.2 node: v5.9.0 how can we add component?

thg303 commented 8 years ago

I solved this issue with these steps:

npm uninstall -g generator-ractive
git clone https://github.com/colindresj/generator-ractive generator-ractive
cd generator-ractive
npm link
yo --generators

shows sub-generators too:

  ractive
    component
    ractive