fix(windows): add windir and C:/Windows as fallback on non-WSL#328
fix(windows): add windir and C:/Windows as fallback on non-WSL#328sindresorhus merged 1 commit intosindresorhus:mainfrom
Conversation
|
The problem here is your system as |
That explanation is the one that makes more sense, but I don't recall changing/removing it, it could be removed by installing some software I reckon. Just for FYI, here's my current Environment variables, I believe the only thing I'll change be Is a very odd behaviour that variable is not present, regardless, this change should probably prevent that issue from happening since there's two fallbacks. |
|
Closes #205 and #292. But the core issue is probably with Node.js itself here as Sindre commented on #299. @pikax Can you try logging |
|
I can confirm |

related: vitejs/vite#14292 vitejs/vite#14293
Not seeing
SYSTEMROOTbeing provided on the environment on my system.System: OS: Windows 11 10.0.22621 CPU: (32) x64 AMD Ryzen 9 7950X 16-Core Processor Memory: 35.64 GB / 63.14 GB Binaries: Node: 20.10.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD pnpm: 8.12.0 - ~\AppData\Local\pnpm\pnpm.EXE Browsers: Edge: Chromium (120.0.2210.77) Internet Explorer: 11.0.22621.1windirseems to be providing the same path and just in case added the defaultC:\\Windowsas a fallback.