-
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
Nx failed to create new workspace #27270
Comments
Same here. if you switch to npm, it should work. |
yes. i tried npm and it works fine, also i tried yarn on ubuntu. everything works fine |
I don't know what it is, but one of our teammate make it work. This is kinda weird. |
Trying to create NX workspace v19.5.7 on Ubuntu from within VSCode Powershell terminal. Command: npx create-nx-workspace --pm pnpm --verbose Successfully completes 'Installed dependencies with pnpm' then fails creating workspace. No error displayed even using --verbose When run in a normal Ubuntu terminal window - works fine. |
we used Windows |
I was having similar issue when initializing monorepo and yarn as a package manager on Windows 11. I was able to avoid the issue by initializing new monorepo in C local disk where windows is located thanks to comment in StackOverflow. But I don't know what is the problem exactly, my suspicion is on NodeJS side |
Current Behavior
Create work space with yarn
npx create-nx-workspace test-nx-expo --pm yarn
Expected Behavior
I should be creating an Nx workspace successfully.
GitHub Repo
No response
Steps to Reproduce
run yarn create nx-workspace --verbose
Nx Report
Failure Logs
Package Manager Version
yarn 4.3.1
Operating System
Additional Information
NX spawnSync C:\Windows\system32\cmd.exe ENOENT
Error: spawnSync C:\Windows\system32\cmd.exe ENOENT
at Object.spawnSync (node:internal/child_process:1124:20)
at spawnSync (node:child_process:876:24)
at execSync (node:child_process:957:15)
at C:\Users\chien\AppData\Local\Temp\tmp-8876-UP6RO6Te6NWk\node_modules@nx\workspace\src\generators\new\new.js:19:46
at C:\Users\chien\AppData\Local\Temp\tmp-8876-UP6RO6Te6NWk\node_modules\nx\src\command-line\new\new.js:26:19
at async handleErrors (C:\Users\chien\AppData\Local\Temp\tmp-8876-UP6RO6Te6NWk\node_modules\nx\src\utils\params.js:22:24)
at async Object.handler (C:\Users\chien\AppData\Local\Temp\tmp-8876-UP6RO6Te6NWk\node_modules\nx\src\command-line\new\command-object.js:10:22)
The text was updated successfully, but these errors were encountered: