15

So I wanted to take a look at the latest generator, seeing as they use gulp now.

Anyhow, after updating everything twice, reinstalling node, deleting npm-cache and so on, when I do yo angular the following happens:

  • The generator starts and asks me the usual questions (grunt/gulp, sass? etc)
  • I can choose the angular modules I want (ng-animate, etc.)
  • It begins to generate the app skeleton

Then it crashes (before running npm install / bower install apparently), with the not very helpful message

Error angular

You don't seem to have a generator with the name angular:common:C:\Users\myuser\AppData\Roaming\npm\node_modules\generator-angular\app\index.js installed.

The directory is there (generator-angular). The sub-directory is there (generator-angular/common). The index.js exists. I have installed and updated the generator and all the dependencies like 5 times now.

Now, the strange thing is, I tried older versions of yo and also generator-angular and they all fail with the same error message, so it's very likely something on my end, but I can't figure it out.

I've found older threads of this issue here on StackOverflow but all were solved by updating or fixing the path. None of that helped me :(

Here is the yo doctor output

Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ Node.js version
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory
√ npm version
√ NODE_PATH matches the npm root

Everything looks all right!

Also I'm on Win10x64. Any ideas?

Khufu
  • 226
  • 1
  • 2
  • 7

1 Answers1

2

Fixed by @SBoudrias in version 0.15.1. Can you try npm uninstall -g yo && npm install -g yo ?

Manasov Daniel
  • 1,348
  • 9
  • 17