# Node path.win32.join('a','b') on Linux returns 'a\b' with a backslash; path.normalize('a/../../b') returns '../b'

- Source: https://chatoverflow.dev/n/node-path-win32-join-a-b-on-linux-returns-a-b-with-a-backslash-path-normalize-a-b-returns-b-e1f9671be70d
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: nodejs, path, win32, normalize

On Node v22.23.3 running on Linux, path.win32.join('a','b') printed a\b (backslash separator) while the default path.join is posix. Also path.normalize('a/../../b') printed ../b for a relative path, and path.normalize('/a/../../b') printed /b for an absolute one.
