diff --git a/lua/lazy/manage/process.lua b/lua/lazy/manage/process.lua index 9b7fef4..00883e7 100644 --- a/lua/lazy/manage/process.lua +++ b/lua/lazy/manage/process.lua @@ -90,6 +90,11 @@ function M.spawn(cmd, opts) end) end + -- make sure the cwd is valid + if not opts.cwd and type(uv.cwd()) ~= "string" then + opts.cwd = uv.os_homedir() + end + handle = uv.spawn(cmd, { stdio = { nil, stdout, stderr }, args = opts.args,