nx icon indicating copy to clipboard operation
nx copied to clipboard

create-nx-workspace stuck in "Creating your workspace" step

Open Markus-Ende opened this issue 1 year ago • 22 comments

Current Behavior

❯ npx create-nx-workspace@latest testwslatest
Need to install the following packages:
  [email protected]
Ok to proceed? (y)

 >  NX   Let's create a new workspace [https://nx.dev/getting-started/intro]

✔ Which stack do you want to use? · angular
✔ Integrated monorepo, or standalone project? · integrated
✔ Application name · testwslatest
✔ Which bundler would you like to use? · webpack
✔ Default stylesheet format · css
✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? · Yes
✔ Test runner to use for end to end (E2E) tests · cypress
✔ Enable distributed caching to make your CI faster · No

 >  NX   Creating your v17.1.2 workspace.

   To make sure the command works reliably in all environments, and that the preset is applied correctly,
   Nx will run "npm install" several times. Please wait.

✔ Installing dependencies with npm
⠸ Creating your workspace in testwslatest

Stuck in this state, no progress.

Is there some way to get more logs?

Expected Behavior

Should finish creating the workspace.

GitHub Repo

No response

Steps to Reproduce

  1. Run npx create-nx-workspace@latest testwslatest
  2. Tested with those options: ✔ Which stack do you want to use? · angular ✔ Integrated monorepo, or standalone project? · integrated ✔ Application name · testwslatest ✔ Which bundler would you like to use? · webpack ✔ Default stylesheet format · css ✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? · Yes ✔ Test runner to use for end to end (E2E) tests · cypress ✔ Enable distributed caching to make your CI faster · No

But also failed with 17.0.2 and 17.0.3 and with other options (e.g. NestJs app, even with type "None")

Nx Report

Nx workspace not created, yet.

Failure Logs

There are no logs.

Package Manager Version

npm 9.5.1

Operating System

  • [ ] macOS
  • [ ] Linux
  • [ ] Windows
  • [X] Other (Please specify)

Additional Information

Operating System: WSL2 under Windows

Markus-Ende avatar Nov 16 '23 10:11 Markus-Ende

Maybe it just takes very long and I'm too impatient? Is there a way to get more logs?

Markus-Ende avatar Nov 16 '23 10:11 Markus-Ende

Same here. I executed [email protected] on Windows 10 and after an hour it is still stuck in "Creating your workspace".

Ollitod avatar Nov 21 '23 14:11 Ollitod

Small updsate: v16 also doesn't work, last working version on my machine is 15.

Markus-Ende avatar Dec 01 '23 07:12 Markus-Ende

update: tried with v17.3.0, it still does not work

Markus-Ende avatar Jan 30 '24 12:01 Markus-Ende

It also did not work for me with the same command

ProductName:            macOS
ProductVersion:         14.2.1
BuildVersion:           23C71

schoggobaer avatar Feb 02 '24 15:02 schoggobaer

Another update: it did work on an older non-M1 macbook.

Markus-Ende avatar Feb 13 '24 08:02 Markus-Ende

Update: still not working with 18.2.4

Markus-Ende avatar Apr 11 '24 15:04 Markus-Ende

Same here. Still not working.

BaggersIO avatar Apr 11 '24 15:04 BaggersIO

I'm using Windows 10, node v20, taking more than one hour to generate the workspace :/

Samaneh avatar Apr 13 '24 11:04 Samaneh

Is there a workaround... any? Suggested last version to use? I'm stuck here too and this seems like a rather severe blocker. I'm surprised that there's no helpful information here considering how long this one's been reported. Any help would greatly be appreciated. Thank you.

matthew-shirey avatar Apr 22 '24 15:04 matthew-shirey

Have encountered this today. NX v18.3.4 Node v21.7.1 WSL2 Ubuntu 22.04.4 LTS

xxxx@DESKTOP-xxx:~/projects/learning$ npx create-nx-workspace ng-mf

NX Let's create a new workspace [https://nx.dev/getting-started/intro]

✔ Which stack do you want to use? · angular ✔ Integrated monorepo, or standalone project? · integrated ✔ Application name · ng-mf ✔ Which bundler would you like to use? · webpack ✔ Default stylesheet format · css ✔ Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? · No ✔ Test runner to use for end to end (E2E) tests · cypress ✔ Set up CI with caching, distribution and test deflaking · skip ✔ Would you like remote caching to make your build faster? · skip

NX Creating your v18.3.4 workspace.

✔ Installing dependencies with npm ⠸ Creating your workspace in ng-mf

viz avatar May 03 '24 01:05 viz

Getting the same result. I'm running it on WSL2 Ubuntu running nix dev shell, using NX v19.2.3.

image

ekawatani avatar Jun 11 '24 20:06 ekawatani

Ok, maybe I was too early to post it. The command worked this time, but it took 27m57s. I know this since I use Starship to measure the length of a shell command. That's too slow, and something is definitely wrong.

ekawatani avatar Jun 11 '24 20:06 ekawatani

Currently running into this as well. Ubuntu 22 on x86. EDIT: finally worked, but took at least ~15 minutes.

bhaugeea avatar Jul 02 '24 20:07 bhaugeea

I just hit this one again. On Windows 11, this command worked fine. On an up-to-date Manjaro Linux, it just hangs. I left it for well over an hour with no progress. Is there any logging that can be turned on to maybe get a bit of feedback regarding what it's not doing?

mshirey avatar Jul 02 '24 20:07 mshirey