Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yo can't find webapp generator #3

Closed
tomlane opened this issue Feb 14, 2013 · 5 comments · Fixed by yeoman/generator#172
Closed

Yo can't find webapp generator #3

tomlane opened this issue Feb 14, 2013 · 5 comments · Fixed by yeoman/generator#172

Comments

@tomlane
Copy link

tomlane commented Feb 14, 2013

https://gist.github.com/tomlane/4956581

after default install command of "npm install -g grunt-cli yo bower" on windows.

@sindresorhus
Copy link
Member

Might be related to yeoman/generator#167

// @mklabs

@tomlane
Copy link
Author

tomlane commented Feb 15, 2013

Turns out the generators aren't mapped correctly or something. after more digging around:

https://gist.github.com/tomlane/4960461

The first 2 questions can be answered but then fails to find the mocha generator due to the same problem.

@mklabs
Copy link
Contributor

mklabs commented Feb 15, 2013

Sounds encouraging

@tomlane thanks for the windows testing

@kevva
Copy link
Member

kevva commented Feb 15, 2013

Looks like it's the namespace function in yeoman-generator/lib/env.js that's causing the problem. More specifically these lines:

ns = ns
  .replace(/\/?node_modules\/?/, '')
  .replace(/\/(index|main)$/, '')
  .replace(/\.+\/?/g, '')
  .replace(/\/+/g, ':');

@fitzchak
Copy link

If the PR fixes this... it will be great if you guys can merge it and publish ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants