@lark-apaas/openclaw-scripts-diagnose-cli 0.1.1-alpha.15 → 0.1.1-alpha.17

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.
Files changed (2) hide show
  1. package/dist/index.cjs +5 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1375,7 +1375,11 @@ function reinstallOpenclaw(srcDir, log) {
1375
1375
  shell("npm uninstall -g openclaw 2>/dev/null || true", 6e4);
1376
1376
  log(`npm uninstall done in ${Date.now() - t}ms`);
1377
1377
  } catch {}
1378
- const installCmd = `npm i -g openclaw@${targetVersion || "latest"} --prefer-offline`;
1378
+ try {
1379
+ shell("rm -rf /home/gem/.npm-global/lib/node_modules/openclaw /home/gem/.npm-global/bin/openclaw 2>/dev/null || true", 1e4);
1380
+ log("force-cleaned residual openclaw global dir");
1381
+ } catch {}
1382
+ const installCmd = `npm i -g openclaw@${targetVersion || "latest"}`;
1379
1383
  log(`running: ${installCmd}`);
1380
1384
  const installStart = Date.now();
1381
1385
  shell(installCmd, 30 * 6e4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/openclaw-scripts-diagnose-cli",
3
- "version": "0.1.1-alpha.15",
3
+ "version": "0.1.1-alpha.17",
4
4
  "description": "CLI for OpenClaw config diagnose and repair with JSON5 support",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {