Closed binaryartifex closed 1 week ago
I had the same problem while also using windows. I was trying to create a NestJS integrated project using nx, but the same error happened at Fetching @nx/webpack...
. Taking a look at other github issue
create-nx-workspace does not generate a project if you use vite, not webpack
There was this comment, which solves the problem for me.
I tried to launch the same command in different contexts : from my C: hdd drive , in the temp folder => it works from my E: ssd drive => it failed
I was also trying to setup a new project in my E:/
SSD Drive and when I tried on my main drive C:/
everything worked fine.
this is STILL an issue. On account of NX being categorically unable to scaffold anything on a separate hdd to the windows OS i usually scaffold my projects on my OS hdd and just move them across. however i can't even do that atm. When trying to scaffold a standard, standalone nestjs application, i get the following error
$ pnpm dlx create-nx-workspace
Packages: +56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 56, reused 56, downloaded 0, added 56, done
NX Let's create a new workspace [https://nx.dev/getting-started/intro]
√ Where would you like to create your workspace? · web-server
√ Which stack do you want to use? · node
√ What framework should be used? · nest
√ Integrated monorepo, or standalone project? · standalone
√ Would you like to generate a Dockerfile? [https://docs.docker.com/] · Yes
√ Do you want Nx Cloud to make your CI fast? · skip
NX Creating your v18.2.3 workspace.
✔ Installing dependencies with pnpm
✖ Creating your workspace in web-server
NX Failed to create a workspace.
Error: 'ode_modules' is not recognized as an internal or external command,
operable program or batch file.
just about ready to give up on this whole monorepo idea...which is awkward cause i pushed for nx in our workplace and now im left having to explain away sh*t like this every other nx release...
Hey @binaryartifex! I’m sorry that I haven’t been able to fix this in a fashion that would be timely for you.
It is on my list, and it will be addressed.
As a potential workaround for now, have you tried using WSL when working with Nx and other dev tools in general?
https://learn.microsoft.com/en-us/windows/wsl/install
This is not an excuse, however, windows tends to present more challenges due to how it handles file handles, permissions and its file system in general. Running on Unix-based system presents the most compatibility.
As I said, it’s not an excuse, we should support Windows in the same manner, and I will address this.
@Coly010 cheers for the reply mate i shouldn't of aired my frustrations like that i apologise it wasn't directed to anyone in particular. ultimately i blame the windows OS purely on principal/spite ;) i understand you guys are under the pump with endless issues that need addressing. in your own time mate, ill give that workaround a crack
This issue has been automatically marked as stale because it hasn't had any activity for 6 months. Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore. If at this point, this is still an issue, please respond with updated information. It will be closed in 21 days if no further activity occurs. Thanks for being a part of the Nx community! 🙏
Current Behavior
create-nx-workspace consistently crashes when attempting to scaffold a new standalone nestjs application
Expected Behavior
Successfully scaffold out a new standalone nestjs application
GitHub Repo
No response
Steps to Reproduce
pnpm dlx create-nx-workspace
Nx Report
Failure Logs
Package Manager Version
pnpm - 8.15.1
Operating System
Additional Information
Attempting nx project scaffolding on a hard drive separate to the OS hosted hard drive.