-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
create-nx-workspace stuck in "Creating your workspace" step #20270
Comments
Maybe it just takes very long and I'm too impatient? Is there a way to get more logs? |
Same here. I executed create-nx-workspace@17.1.3 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
|
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. 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 NX Creating your v18.3.4 workspace. ✔ Installing dependencies with npm |
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? |
I believe it's a bug. As far as I understand, the nx's post-install script is the main culprit. Here is the way I reproduce it.
Steps:
Troubleshooting steps:
Relevant logs:
Full logfile: Note: Please contact me if you cannot reproduce the issue on your machine and you want to use my environment for debugging. |
I just got the exact same error message, using
|
I've encountered this issue today as well. npx create-nx-workspace
Need to install the following packages:
create-nx-workspace@20.0.0
Ok to proceed? (y) y
NX Let's create a new workspace [https://nx.dev/getting-started/intro]
✔ Where would you like to create your workspace? · org
✔ Which stack do you want to use? · react
✔ What framework would you like to use? · nextjs
✔ Integrated monorepo, or standalone project? · integrated
✔ Application name · diet-it
✔ Would you like to use the App Router (recommended)? · Yes
✔ Would you like to use the src/ directory? · Yes
✔ Test runner to use for end to end (E2E) tests · none
✔ Default stylesheet format · tailwind
✔ Which CI provider would you like to use? · github
NX Creating your v20.0.0 workspace.
✔ Installing dependencies with npm
⠋ Creating your workspace in org It hanged for 10 minutes, then I gave up. |
Same here! After a bunch of runs it has worked... |
Yup, I let it run for hours, and hours .... stuck on creating .... |
I am not sure if it's related but it happened to me the second time (still pending), the first time was fast and normal. |
I finally just let it go over night figuring what the heck and it just finished after like 16 hours! :) |
This is not normal |
Got same issue today also, but it was my network. Try checking your network |
For anyone still having this issue, the problem in my case is related to npm. It is getting stuck. Changing to yarn made it work. |
It could be the npm issue indeed. I no longer have this problem after upgrading npm to 10.9.1. See npm/cli#7814 |
I'm still having this issue with npm v10.9.1, v10.9.2, and v11.0.0. |
To make it work, I had to execute the create command skipping Prettier, CI, and remote caching. |
Current Behavior
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
✔ 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
Failure Logs
Package Manager Version
npm 9.5.1
Operating System
Additional Information
Operating System: WSL2 under Windows
The text was updated successfully, but these errors were encountered: