You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
For my part, I managed to locate the source of my error: it comes from the execa package when the preferLocal option is enabled.
import{execa}from"execa";// Installed: v9.4.1const$=execa({preferLocal: true,stdio: "inherit"});await$`node --version`;// Error... but OK when `preferLocal` is `false`.
I guess I'll just have to open a ticket on the execa repository.
(Done => sindresorhus/execa#1161)
In my case I'm afraid it will be almost impossible to locate the source of the error. We have a massive back-end with plenty of packages and I even don't know where to start looking for the root cause. But I have an idea that issue might be related to that one bug: #55414
Activity
CedX commentedon Oct 17, 2024
Same issue here 😢 (also using Windows 10)
mcollina commentedon Oct 17, 2024
Thanks for reporting!
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
CedX commentedon Oct 17, 2024
For my part, I managed to locate the source of my error: it comes from the
execapackage when thepreferLocaloption is enabled.I guess I'll just have to open a ticket on the
execarepository.(Done => sindresorhus/execa#1161)
bricss commentedon Oct 17, 2024
In my case I'm afraid it will be almost impossible to locate the source of the error. We have a massive back-end with plenty of packages and I even don't know where to start looking for the root cause. But I have an idea that issue might be related to that one bug: #55414
avivkeller commentedon Oct 17, 2024
legendecas commentedon Oct 17, 2024
This can be reproduced with @CedX's snippet on Windows.
The issue on this is
path.resolve('D:\\', '..')returnsD:, rather thanD:\\on Windows. This causes indefinite loop on https://github.com/sindresorhus/unicorn-magic/blob/main/node.js#L16-L29.avivkeller commentedon Oct 17, 2024
Ahh, it must be specific to windows (at least in this case), as I couldn't reproduce on Linux, my apologies for jumping to conclusions.
If that's the case, this is resolved by #55414, and may be a duplicate of #55410
bricss commentedon Oct 25, 2024
The issue was fixed in the new version of Node 23.1.0 🩹
CedX commentedon Oct 25, 2024
Also OK on my side with v23.1.0 👍