mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
fix: 解决 node.js 模块更新失败的问题 (#2510)
This commit is contained in:
parent
c01b3764f8
commit
cd376b2e97
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user