@drocketxx/pm2me 1.1.20 → 1.1.22

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.
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drocketxx/pm2me",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "description": "PM2 Deployment and Management System — Web UI for PM2 process management",
5
5
  "type": "module",
6
6
  "main": "backend/app.js",