I am new to yeoman set of tools. I run following commands in Ubuntu 12
$ npm install -g yo
$ npm install -g generator-webapp
$ yo webapp
I am able to create a web app project. After that I tried to create an angular project. First I run a command
$ npm install -g generator-angular
And no error is displayed with installation of this generator.
When I run the command
$ yo angular
I get the error:
Error angular
You don't seem to have a generator with the name angular installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 2 registered generators run yo with the `--help` option.
How to resolve this? When I run the command
$ ls $(npm config get prefix)/lib/node_modules
output is:
bower generator-angular generator-karma generator-mocha generator-webapp grunt-cli yo
The same problem occurred when I use to install generator-backbone using
$ npm install -g generator-backbone
It installs the package successfully and when I run the command in an empty folder
$ yo backbone
It's giving the output
Error backbone
You don't seem to have a generator with the name backbone installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 2 registered generators run yo with the `--help` option.
When I run the command
$ npm config get prefix
It's giving me the output
/home/ritesh/npm
Perhaps I am doing some mistake in this path. Can any one tell how to resolve it?
yo
? – Condensedprefix
should be set to/usr
. There must be sth setting it incorrectly for you. Perhaps~/.npmrc
file ? – Ishii/usr/local/share/npm
which looks correct. – Breadfruit