Yeoman

Seems yeoman is the best for Angular dev, like rails. Create, modify controller, views on the fly.

Except it doesnt work. On Windows 8.

Tried in my Centos 6 VM from work.

gen a project:

Error angular 

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

Fine, install karma

localhost bin]$ sudo npm install -g generator-karma
[sudo] password for me: 
npm http GET https://registry.npmjs.org/generator-karma
npm http 304 https://registry.npmjs.org/generator-karma
npm http GET https://registry.npmjs.org/yeoman-generator
...
npm ERR! peerinvalid The package generator-karma does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer generator-angular@0.2.2 wants generator-karma@~0.2.0

npm ERR! System Linux 2.6.32-279.14.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "generator-karma"
npm ERR! cwd /home/me/tools/WebStorm-127.122/bin
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.17
npm ERR! code EPEERINVALID
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/me/tools/WebStorm-127.122/bin/npm-debug.log

So now what? The log file is no help, just the details.

Sigh. Why did I ever do this for a living?

This entry was posted in Computers, howto, Software and tagged , , , , , . Bookmark the permalink.

1 Response to Yeoman

  1. dave says:

    Works like a dream on Centos Linux. Install NPM, export PATH=NPM_HOME/bin:$PATH, and npm install -q angular like in the book.

    Note that yeoman seems not to support minification yet…

Leave a Reply