From 0873f413291afc0c7162c1701726cfa9cf423edd Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 8 Jul 2016 06:06:39 -0700 Subject: [PATCH] plugins: fix command not found detection --- plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.js b/plugins.js index f9a1b367..399883dc 100644 --- a/plugins.js +++ b/plugins.js @@ -149,7 +149,7 @@ function install (fn) { cwd: path }, (err, stdout, stderr) => { if (err) { - if (/(command not found|not recognized as an)/.test(err.message)) { + if (/(command not found|not recognized as an)/.test(err.stack)) { if (plugins.plugins.length) { alert('We found `plugins` in `.hyperterm.js`, but `npm` is ' + 'not installed or not in $PATH!\nPlease head to ' +