Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

"Invalid namespace" when running yo angular #56

Closed
hkgrani opened this issue Feb 19, 2013 · 11 comments
Closed

"Invalid namespace" when running yo angular #56

hkgrani opened this issue Feb 19, 2013 · 11 comments

Comments

@hkgrani
Copy link

hkgrani commented Feb 19, 2013

I successfully uninstalled grunt and installed yo, grunt-cli and bower as per instructions. I then verified that yo webapp did work
I then did npm install -g generator-angular and it seems to run fine

However, when running yo angular I get this error message ;

Error angular

Invalid namespace: angular (or not yet registered).
Registered: 4 namespace(s). Run with the --help option to list them.

Please let me know if this is not the right place to post issues like these

@passy
Copy link
Member

passy commented Feb 19, 2013

For the moment, you can't install generators globally. See yeoman/generator#171

@hkgrani
Copy link
Author

hkgrani commented Feb 19, 2013

Wow. That was quick. Its working now. Will reply to Briand tweet where I copied the command from. Thanks!!

@btford
Copy link
Contributor

btford commented Feb 19, 2013

Yep, that was my bad. I've attempted to alert the masses.

@btford btford closed this as completed Feb 19, 2013
@rstuven
Copy link

rstuven commented Feb 20, 2013

I'm getting the same error in Windows:

C:\>mkdir test
C:\>cd test
C:\test>npm install generator-angular
C:\test>npm install generator-testacular
C:\test>yo angular
Error angular

Invalid namespace: angular (or not yet registered).
 Registered: 14 namespace(s). Run with the `--help` option to list them.

Versions for reference:

C:\test>ver
Microsoft Windows [Version 6.1.7601]

C:\test>node -v
v0.8.20

C:\test>npm -v
1.2.11

C:\test>npm ls
C:\test
├─┬ generator-angular@0.1.3
...
└─┬ generator-testacular@0.1.1
...

C:\test>npm ls -g
C:\Users\rstuven\AppData\Roaming\npm
├─┬ bower@0.7.1
...
├─┬ grunt-cli@0.1.6
...
└─┬ yo@1.0.0-beta.2
...

@btford
Copy link
Contributor

btford commented Feb 21, 2013

in Windows

:/

@rstuven: have you tried/can you try yo webapp to see if that works?

@sindresorhus
Copy link
Member

As said in the docs, it's not currently working in Windows.

@rstuven
Copy link

rstuven commented Feb 21, 2013

@btford Yes, :/ , but I'm trying to convince other team members to use yeoman ;)

yo webapp had the same problem. I tracked down the issue to yeoman-generator and fixed it (see pull request above). Now the docs are wrong, @sindresorhus :)

@btford
Copy link
Contributor

btford commented Feb 21, 2013

@rstuven the :/ was for debugging platform-specific issues in general. I'll have to take a look at your fix, but thanks!

@heavysixer
Copy link

This tripped me up too, in fact I was copy and pasting the instructions for an Angular scaffold directly from the website where it specifies the -g parameter:
http://yeoman.io/

@kevva
Copy link
Member

kevva commented Apr 23, 2013

Global generators works now. Maybe you haven't updated yo, npm cache clean && npm update -g yo.

@heavysixer
Copy link

You are exactly right @kevva !

manjunathkg pushed a commit to manjunathkg/generator-angular that referenced this issue Jun 6, 2013
Ensure server is launched before tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants