nx
nx copied to clipboard
create-nx-workspace stuck in "Creating your workspace" step
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
- Run npx create-nx-workspace@latest testwslatest
- 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
Maybe it just takes very long and I'm too impatient? Is there a way to get more logs?
Same here. I executed [email protected] on Windows 10 and after an hour it is still stuck in "Creating your workspace".
Small updsate: v16 also doesn't work, last working version on my machine is 15.
update: tried with v17.3.0, it still does not work
It also did not work for me with the same command
ProductName: macOS
ProductVersion: 14.2.1
BuildVersion: 23C71
Another update: it did work on an older non-M1 macbook.
Update: still not working with 18.2.4
Same here. Still not working.
I'm using Windows 10, node v20, taking more than one hour to generate the workspace :/
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.
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
Getting the same result. I'm running it on WSL2 Ubuntu running nix dev shell, using NX v19.2.3.
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.
Currently running into this as well. Ubuntu 22 on x86. EDIT: finally worked, but took at least ~15 minutes.
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?