diff --git a/backend/app/service/runtime.go b/backend/app/service/runtime.go index 98ec6133b..c40f01b65 100644 --- a/backend/app/service/runtime.go +++ b/backend/app/service/runtime.go @@ -506,7 +506,11 @@ func (r *RuntimeService) OperateNodeModules(req request.NodeModuleOperateReq) er cmd += " remove" } case constant.RuntimeUpdate: - cmd += " update" + if req.PkgManager == constant.RuntimeNpm { + cmd += " update" + } else { + cmd += " upgrade" + } } cmd += " " + req.Module return cmd2.ExecContainerScript(containerName, cmd, 5*time.Minute)