plugins: fix command not found detection

This commit is contained in:
Guillermo Rauch 2016-07-08 06:06:39 -07:00
parent 647d024a39
commit 0873f41329

View file

@ -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 ' +