-
Notifications
You must be signed in to change notification settings - Fork 309
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
Node v20.12.2 breaks windows CLI #1376
Comments
I managed to fix it by simply removing both |
@arthurfiorette can you elaborate on what's not working? Is it that windows users aren't able to execute |
Also |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
not stale |
@arthurfiorette if it's not stale, can you answer my original question:
|
Oh sorry! After node v20.12.2, nodejs enable execution of .cmd files only under a flag. This means that all package managers (npm, yarn, pnpm...) also cannot execute You can simply test this out by switching to |
@arthurfiorette how are you running the .cmd files? I'm not able to repro with these steps
My understanding of the node change is that it only applies to spawning |
I'm not running directly, users in Windows complain about this problem when they run our CLI with |
@arthurfiorette What kind of fix do you have in mind here? I don't think there's anything addressable here since we're just providing the .cmd files - it's other people's responsibility to use them correctly |
In windows, when there's a |
I'm struggling to see how this is a fix that needs to happen in oclif and not in your CLI. Simply removing the I'm closing this for now unless you can prove that this isn't an issue specific to your CLI |
https://nodejs.org/en/blog/release/v20.12.2#2024-04-10-version-20122-iron-lts-rafaelgss
nodejs/node@69ffc6d50d disabled execution of
.cmd
and.bat
files withchild_process.spawn
, which breaks oclif'sdev.cmd
andbin.cmd
scripts to be run on windows.The text was updated successfully, but these errors were encountered: