sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Yeoman Freeze on Windows 10

Open marcorocca1973 opened this issue 7 years ago • 32 comments

Hi All my dev environment is based on Windows 10 (64bit) client, with installed

  • node js 10.16.0
  • latest version of yeoman, gulp and SharePoint generator (1.8.2)

But when i create new project for SharePoint online, yeoman "freeze" and nothing happens (see picture). I can only close window.

spfx

I try with other machine with Windows Server 2012 R2 and Windows Server 2016 but results is the same. Same results when i try to clean npm cache and reinstall all components.

Could you help me? Thanks Marco

marcorocca1973 avatar Jun 20 '19 12:06 marcorocca1973

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Jun 20 '19 12:06 msft-github-bot

A few followup questions:

  • Is that (the screenshot) where it freezes?
  • Can you run npm list -g --depth=0
  • Are you running any type of antivirus that could be blocking scripts from running?

andrewconnell avatar Jun 20 '19 14:06 andrewconnell

Same here, and I tried to execute the command with parameters but it still freeze.

image

edg4r-b avatar Jun 20 '19 15:06 edg4r-b

I can reproduce. I completely refreshed a VM (i.e. reinstalled Node, Yeoman, Gulp, and the SPFx generator) and the generator is freezing when accepting input on the question "Do you want to allow the tenant admin the choice of being able to deploy the solution to all sites immediately without running any feature deployment or adding apps in sites?"

rob-windsor avatar Jun 20 '19 15:06 rob-windsor

I'm seeing the same issue.. when I run Yo @microsoft/Sharepoint, it takes around 3 minutes for the Yeoman symbol to show. With the YO Debug variable set, this still takes 3 minutes to show the Debug messages.

Once the generator does display, it stops for a while after the File location choice, then stops completely at the Admin deploy choice.., No keyboard entry seems to do anything.

I've left this one running for about 20 minutes so far.

cimares avatar Jun 20 '19 15:06 cimares

npm list -g --depth=0 returns: +-- @microsoft/[email protected] +-- [email protected] `-- [email protected]

Running yo --version returns the version quickly, but running Yo on it's own to trigger the generator picker takes forever as well. (Although I'm not sure how quick this is usually!)

cimares avatar Jun 20 '19 15:06 cimares

Same with Linux .. ♥ Microdobe ♥

edg4r-b avatar Jun 20 '19 16:06 edg4r-b

@patmill Seems multiple reports all the sudden coming in about the Yeoman SPFx generator freezing up... aware of this?

andrewconnell avatar Jun 20 '19 17:06 andrewconnell

Think we've isolated to the latest version of Yeoman (2.0.6) on Windows.

Can you guys downgrade and try again?

npm install -g [email protected]

andrewconnell avatar Jun 20 '19 17:06 andrewconnell

I have the same issue with 2.0.2

jefmeyer avatar Jun 20 '19 17:06 jefmeyer

@jefmeyer did you upgrade to a version > 2.0.2, then downgrade to 2.0.2? Or have you never had a version above 2.0.2 installed?

andrewconnell avatar Jun 20 '19 17:06 andrewconnell

I just installed Yo 2.0.6 this morning, ran into the issue, saw this thread and then downgraded to 2.0.2

jefmeyer avatar Jun 20 '19 17:06 jefmeyer

now starting to smell like a downstream dependency in Yeoman... check this out: https://github.com/yeoman/yeoman/issues/1714

Check all global installs: npm list -g Search for inquirer ... check the version. If >= 6.4.0, try installing 6.3.1: npm i -g [email protected]

I'm on macOS and not having this issue so hard for me to replicate...

andrewconnell avatar Jun 20 '19 18:06 andrewconnell

Even after a npm i -g [email protected] i still get the freeze

Tanddant avatar Jun 20 '19 18:06 Tanddant

@andrewconnell I cleared all the NPM packages, went through the "Setup development" guide again, rolled back yo to 2.0.2 and also the inquire version, but still same freeze issue, checking after each rollback.

jefmeyer avatar Jun 20 '19 18:06 jefmeyer

@andrewconnell I installed [email protected] but 6.4.0 is still there as a dependency of Yeoman. At least it appears to be. This is where my lack of full understanding how these dependency trees work defeats me.

image

rob-windsor avatar Jun 20 '19 18:06 rob-windsor

@andrewconnell I dropped down to [email protected] but [email protected] is still in the dependencies.

image

rob-windsor avatar Jun 20 '19 18:06 rob-windsor

@rob-windsor no matter which version 2.0.0 you use this won't work because how yeoman has defined their versions of inquirer in package.json. You have to move back to version 1.x.x.

The easiest way to accomplish this is to execute the following command:

npm install @microsoft/generator-sharepoint@1 -g

This should then installed an older version of the inquirer package and the generator is working again:

Screenshot 2019-06-20 at 21 43 07

SPFx anyway uses a really old version of yeoman so no need to worry or update to the latest version.

It seems that this issue is related to: https://github.com/SBoudrias/Inquirer.js/issues/811

StfBauer avatar Jun 20 '19 19:06 StfBauer

After installing yeoman v1.8.5, spfx generator v1.8.2 has worked. npm install yo@1 -g

But I saw the another freeze when I run the following command. yo @microsoft/sharepoint

Instead, when I run yo and choose @microsoft/sharepoint, it's work. image

image

thank you for everyone of this thread !

MickNabewata avatar Jun 21 '19 07:06 MickNabewata

@MickNabewata I confirm your test Command yo @microsoft/SharePoint still not working :(

But working if I choose yo and select: @microsoft/SharePoint

marcorocca1973 avatar Jun 21 '19 08:06 marcorocca1973