Permalink
Browse files

provider/node: npm --loglevel silent (#8682)

closes #8674
npm log level may cause unexpected output.
  • Loading branch information...
craftzdog authored and justinmk committed Jul 4, 2018
1 parent bd51a0c commit e889640048ddeb37f428ebeaa39bccca4f7508e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 runtime/autoload/provider/node.vim
@@ -27,7 +27,7 @@ function! s:find_node_client(package_manager) abort
return ''
endif
let is_yarn = a:package_manager ==# 'yarn'
let cmd = is_yarn ? 'yarn global dir' : 'npm root -g'
let cmd = is_yarn ? 'yarn global dir' : 'npm --loglevel silent root -g'
let global_modules_dir = get(split(system(cmd), "\n"), 0, '')
if v:shell_error || !isdirectory(global_modules_dir)
return ''

0 comments on commit e889640

Please sign in to comment.