mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
provider/node: npm --loglevel silent (#8682)
closes #8674 npm log level may cause unexpected output.
This commit is contained in:
parent
bd51a0cd04
commit
e889640048
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user