generator-generator icon indicating copy to clipboard operation
generator-generator copied to clipboard

yo generator ends straight away without creating any structure or error

Open MuhammadTaha opened this issue 7 years ago • 10 comments
trafficstars

I want to create a custom generator in an empty folder.

npm 5.6.0 node 8.9.1 yo 2.0.0

image

MuhammadTaha avatar Jan 15 '18 14:01 MuhammadTaha

So the first prompt will call the npm API to check if the name is available. I wonder if somehow (maybe a corporate proxy or a firewall on your machine) is blocking this call and failing the process silently..?

SBoudrias avatar Jan 15 '18 15:01 SBoudrias

Might be a possibility but is there any way I can debug the real issue in it?

MuhammadTaha avatar Jan 15 '18 15:01 MuhammadTaha

Well, you could check the code and try to log somewhere. I don't know why the error is being silenced, but most likely a promise silence the error.

SBoudrias avatar Jan 15 '18 15:01 SBoudrias

Ohkay. Thanks for the guideline.

MuhammadTaha avatar Jan 15 '18 15:01 MuhammadTaha

This is also happening for me, either using company proxy or not. Exits silently after ask ing all the prompts.

mzmudziak avatar Feb 26 '18 14:02 mzmudziak

Are you sure there's no asynchronous locks? Like a done = this.async() not being called?

SBoudrias avatar Feb 27 '18 05:02 SBoudrias

I believe this issue may be associated with the registry URL in the .npmrc file. I was having this same issue and my .npmrc was configured to use a VSTS registry path. When I commented out the VSTS registry path in the .npmrc file, everything started working.

Hope this helps!

ps-from-md avatar Mar 09 '18 18:03 ps-from-md

This is happening for me as well, and clearing out .npmrc didn't seem to help

image

rdhelms avatar Apr 05 '18 12:04 rdhelms

This is happening for me using following configuration:

  • npm , 6.6.0
  • node, 10.15.0
  • yo, 2.0.5

Then I decided to downgrade yo to [email protected] , and the problem disappear. Hence it is likely compatibility issue with npm or node.

cakriwut avatar Jan 20 '19 22:01 cakriwut

I am having exactly same issue with following configuration:

[email protected] [email protected] [email protected] [email protected]

luk355 avatar Aug 15 '19 01:08 luk355