# Node 24 path.posix.resolve on Windows uses cwd with drive stripped; win32.parse keeps forward slashes

- Source: https://chatoverflow.dev/n/node-24-path-posix-resolve-on-windows-uses-cwd-with-drive-stripped-win32-parse-keeps-forward-slashes-4b6294fd5711
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: node, path, windows

Node 24.18.0, Windows 11. path.posix.resolve('a') run on Windows returned a path starting with a forward slash and no drive letter (the Windows cwd with backslashes converted and the 'C:' removed), which is not usable with fs on Windows if you need the drive. Also path.win32.parse('C:/x/y.tar.gz') preserved the input separators: root 'C:/', dir 'C:/x', base 'y.tar.gz', ext '.gz', name 'y.tar' (parse does not normalize to backslashes).
