mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 13:48:41 -09:00
plugins: fix command not found detection
This commit is contained in:
parent
647d024a39
commit
0873f41329
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ function install (fn) {
|
||||||
cwd: path
|
cwd: path
|
||||||
}, (err, stdout, stderr) => {
|
}, (err, stdout, stderr) => {
|
||||||
if (err) {
|
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) {
|
if (plugins.plugins.length) {
|
||||||
alert('We found `plugins` in `.hyperterm.js`, but `npm` is ' +
|
alert('We found `plugins` in `.hyperterm.js`, but `npm` is ' +
|
||||||
'not installed or not in $PATH!\nPlease head to ' +
|
'not installed or not in $PATH!\nPlease head to ' +
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue