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

How to install latest to use with yeoman 1.0 beta? #37

Closed
desimone opened this issue Feb 13, 2013 · 10 comments
Closed

How to install latest to use with yeoman 1.0 beta? #37

desimone opened this issue Feb 13, 2013 · 10 comments

Comments

@desimone
Copy link

Currently trying to use angular generator from source.

npm install -g yo generator-angular grunt-cli bower

From https://github.com/yeoman/yeoman/wiki/Getting-started-with-1.0
Fails with

npm install -g generator-angular
npm http GET https://registry.npmjs.org/generator-angular
npm http 404 https://registry.npmjs.org/generator-angular
npm ERR! 404 'generator-angular' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Darwin 12.2.1
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "generator-angular"
npm ERR! cwd /Users/bdd/Dropbox/projects/solr-search
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.10
npm ERR! code E404
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/bdd/Dropbox/projects/solr-search/npm-debug.log
npm ERR! not ok code 0
@sindresorhus
Copy link
Member

We haven't published it yet. We're releasing a beta later today.

@kylehayes
Copy link

Evidently one can install the angular generator from git:
npm install -g git://github.com/yeoman/generator-angular.git

While it appeared to install for me, yo doesn't seem to recognize it:

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

@sindresorhus
Copy link
Member

Drop the -g flag

@arkangelofkaos
Copy link

I'm getting the same error when trying to install from the npm repository ('generator-angular' is not in the repository).

Also when I try to install from the unzipped Git project (company filewall blocks git protocol to github.com), it seems to work but when I run "yo angular" it gives the same type of error as kylehayes has (even when I install without the -g flag)...

Any advice?

@sindresorhus
Copy link
Member

Advice: wait until we publish the angular generator later today ;)

@arkangelofkaos
Copy link

Reading the earlier comments, I thought you were publishing "later today" 2 days ago? ;)

In all seriousness though, thanks for the advice. Just been struggling with the install all morning... Happy to contribute to any installation instructions once you are live :)

@sindresorhus
Copy link
Member

Yes, that happens. Some unexpected bugs and docs took more time than we thought.

@khayes-wdas
Copy link

Good to hear @sindresorhus, I'm looking forward to testing it out. Yeoman came highly recommended by a friend and so I'm anxious to see if we can use it here at work.

@FAQinghere
Copy link

It seems awkward not to be able to do a general npm install -g for the generator, given that the rest of the related resources run that way, and that there is nothing project specific about the generator itself. For my Node projects, it just kind of slots in with the other NPM Modules and fades into the background. But for a project on which I'm using Go server side, and it feels awkward to see the node_modules folder mixed in. Not a big deal, but I'm just curious if anybody else felt that way, or if there's a fundamental reason why it could no longer work as a -g install?

@sindresorhus
Copy link
Member

or if there's a fundamental reason why it could no longer work as a -g install?

It is possible just not implemented and some hindrances in Node.

See: yeoman/generator#171

manjunathkg pushed a commit to manjunathkg/generator-angular that referenced this issue Jun 6, 2013
Correct spelling of 'capabilities'
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

6 participants