-
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
Error: 'les' is not recognized as an internal or external command, operable program or batch file. #21742
Comments
I have the same issue, I tried using create-nx-workspace with react preset and create a empty monorepo and add @nx/react and @nx/workspace after that, but is the same issue. Using the command This only happens with pnpm. I checked if some packages that @nx/react installs are present before execute the generator the command is executed successfully. If them are not preset outputs something like that:
The package @swc-node/register is also involved in this issue, If this package is removed and react preset is executed throws this log:
and retries to execute the command again. But if the command is executed directly using node:
The error doesn't happen. I tried to check the cmd.exe calls and intercept them using COMSPEC environment variable but I cannot get information about the caller. cmd.exe can be called directly or some part of pnpm process is executed by cmd.exe This sees similar to this issue pnpm/pnpm#7181 . But I cannot confirm if pnpm is the real curprit. |
This issue has been automatically marked as stale because it hasn't had any activity for 6 months. |
Current Behavior
When I run this command on windows command prompt :
npx create-nx-workspace --pm pnpm
it's giving me this error :
` NX Failed to create a workspace.
Error: 'les' is not recognized as an internal or external command,
operable program or batch file.
I try also the second time now the error is :
` NX Failed to create a workspace.
Error: 'odules' is not recognized as an internal or external command,
operable program or batch file.`
I'm using pnpm version 8.15.1, nodejs version 20.11.0 and windows 11 without wsl
maybe there is something broken command or text in the windows environment ?
Expected Behavior
it suppose to generate the workspace successfully
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace --pm pnpm
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: