Regression (macOS): incorrect unprivileged home path calculation leads to crash
Deployment fails on macOS with UnhandledPromiseRejectionWarning: Error: ENOTSUP
❨site.js❩ Building Hugo source at .hugo/
(node:31764) UnhandledPromiseRejectionWarning: Error: ENOTSUP: operation not supported on socket, mkdir '/home/laura'
at Object.mkdirSync (fs.js:841:3)
at mkdirsSync (/usr/local/bin/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:31:9)
at mkdirsSync (/usr/local/bin/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:36:14)
at mkdirsSync (/usr/local/bin/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:36:14)
at Object.mkdirsSync (/usr/local/bin/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:36:14)
at new Hugo (/usr/local/bin/node_modules/@small-tech/node-hugo/index.js:49:8)
at /usr/local/bin/bin/lib/generate-content.js:54:18
at asyncForEach (/usr/local/bin/lib/async-foreach.js:25:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async generateContent (/usr/local/bin/bin/lib/generate-content.js:28:3)
(node:31764) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:31764) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
``