:checkhealth: fix check for npm and yarn (#7569)

Fix bug that checked for npm AND yarn, where we wanted npm OR yarn.
But since we call `npm` exclusively, and it's highly unlikely you have
yarn installed without npm, let's just remove the yarn check altogether.

Addresses https://github.com/neovim/node-client/issues/41
This commit is contained in:
Billy Vong 2017-11-16 14:43:50 -08:00 committed by Justin M. Keyes
parent 59b0d9f62d
commit eacd788cf5

View File

@ -496,7 +496,7 @@ function! s:check_node() abort
return
endif
if !executable('node') || !executable('npm') || !executable('yarn')
if !executable('node') || !executable('npm')
call health#report_warn(
\ '`node` and `npm` must be in $PATH.',
\ ['Install Node.js and verify that `node` and `npm` commands work.'])