@drocketxx/pm2me 1.1.20 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/routes/api.js +2 -2
- package/package.json +1 -1
package/backend/routes/api.js
CHANGED
|
@@ -1061,9 +1061,9 @@ router.post('/system/update', async (req, res) => {
|
|
|
1061
1061
|
if (isGlobal) {
|
|
1062
1062
|
// Run in background/detached mode so it continues after service uninstall
|
|
1063
1063
|
if (isWindows) {
|
|
1064
|
-
cmd = 'powershell -Command "Start-Process powershell -ArgumentList \'-Command\',\'npm install -g @drocketxx/pm2me@latest; pm2me service uninstall; pm2me service install\' -WindowStyle Hidden"';
|
|
1064
|
+
cmd = 'powershell -Command "Start-Process powershell -ArgumentList \'-Command\',\'npm cache clean --force; npm install -g @drocketxx/pm2me@latest --force; pm2me service uninstall; pm2me service install\' -WindowStyle Hidden"';
|
|
1065
1065
|
} else {
|
|
1066
|
-
cmd = 'nohup sh -c "npm install -g @drocketxx/pm2me@latest && pm2me service uninstall && pm2me service install" > /tmp/pm2me-update.log 2>&1 &';
|
|
1066
|
+
cmd = 'nohup sh -c "npm cache clean --force && npm install -g @drocketxx/pm2me@latest --force && pm2me service uninstall && pm2me service install" > /tmp/pm2me-update.log 2>&1 &';
|
|
1067
1067
|
}
|
|
1068
1068
|
cwd = '/';
|
|
1069
1069
|
} else {
|