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

closes #8674
npm log level may cause unexpected output.
This commit is contained in:
Takuya Matsuyama 2018-07-04 19:13:36 +09:00 committed by Justin M. Keyes
parent bd51a0cd04
commit e889640048
1 changed files with 1 additions and 1 deletions

View File

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