Khufu
Khufu

Reputation: 246

generator-angular - You don't seem to have generator with the name angular installed

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:

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?

Upvotes: 15

Views: 1433

Answers (1)

Manasov Daniel
Manasov Daniel

Reputation: 1378

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

Upvotes: 2

Related Questions