From 40c370a0590a20b740b278bf584c7765bcd0df28 Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Fri, 18 Aug 2017 09:57:07 -0700 Subject: [PATCH] fix: health check incorrectly requires yarn and npm fixes #30 --- autoload/health/node.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/health/node.vim b/autoload/health/node.vim index 9c8e6b3..3234135 100644 --- a/autoload/health/node.vim +++ b/autoload/health/node.vim @@ -427,7 +427,7 @@ function! s:check_node() abort return endif - if !executable('node') || !executable('npm') || !executable('yarn') + if !executable('node') || (!executable('npm') && !executable('yarn')) call health#report_warn( \ '`node` and `npm` must be in $PATH.', \ ['Install Node.js and verify that `node` and `npm` commands work.'])