You should use the CommonJS version of path. If you want to grab path directly...
git clone https://github.com/pazguille/path from the working directory so it's loaded into ./path. I changed the require statement to point to that location.