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

Unable to generate custom generator #210

Open
marcore86 opened this issue Oct 30, 2017 · 6 comments
Open

Unable to generate custom generator #210

marcore86 opened this issue Oct 30, 2017 · 6 comments

Comments

@marcore86
Copy link

marcore86 commented Oct 30, 2017

Hi there,
I am quite new with generator stuff and I am just trying to create a new one but "yo generator" command is not behaving as expected.

C:\dev\generator-ionic-angular>yo generator
? Your generator name generator-ionic-angular

C:\dev\generator-ionic-angular>npm -v
5.4.2

C:\dev\generator-ionic-angular>node -v
v8.8.0

C:\dev\generator-ionic-angular>yo --version
2.0.0

I am running on Windows 10, x64.
As you can see, after the first question, the generator is just quitting and nothing has been done into folder. Am I doing something wrong?

Thanks,
Marco

@mischah
Copy link
Member

mischah commented Oct 30, 2017

So after hitting the enter key at the question ? Your generator name yo simply quits?
Without any error message?

@mischah
Copy link
Member

mischah commented Oct 30, 2017

generator-generator should create a subdirectory within your generator-ionic-angular directory.

Check the following output:

 ~/temp/huzzel
$ yo generator
? Your generator name generator-huzzel
Your generator must be inside a folder named generator-huzzel
I'll automatically create this folder.
? Description

So your issue might be caused by missing permissions.

@marcore86
Copy link
Author

Hi @mischah , thanks to gets me back.

So after hitting the enter key at the question ? Your generator name yo simply quits?

  • Yes, no error messages are shown.

I tried to run 'yo generator' into a folder with the same name, didn't work.
Also, i did try to run 'yo' command and then select 'generator' option but, after the question name i did get ' Bye from us! Chat soon.' message by yeoman team.

Thanks

@SBoudrias
Copy link
Member

I believe we check with NPM if the name you selected exists before continuing. Any chance a corporate proxy would be blocking that request somehow?

Usually this throws and print an error when happening. That you don't get anything on the console here is really weird...

@47669079
Copy link

I have the same issue :(

@MuTsunTsai
Copy link

MuTsunTsai commented Aug 28, 2020

I'm having the same problem; after typing the name, it simply stop responding. It doesn't print any message, doesn't quit, nothing. Just stop responding. Win 10 x64 as well.

Update

Fixed after upgrading node to v.14

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

No branches or pull requests

5 participants