From 24a9e32a9d1c96611edaaeab79a67f725371d8b1 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Wed, 17 Aug 2016 16:36:18 -0700 Subject: [PATCH] fix for windows --- lib/utils/to-human-path.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/to-human-path.js b/lib/utils/to-human-path.js index a8533c9..4b03f0a 100644 --- a/lib/utils/to-human-path.js +++ b/lib/utils/to-human-path.js @@ -1,7 +1,8 @@ import { resolve } from 'path'; +import { homedir } from 'os'; // cleaned-up `$HOME` (i.e.: no trailing slash) -const HOME = resolve(process.env.HOME); +const HOME = resolve(homedir()); /** * Attempts to show the given path in