@lark-apaas/openclaw-scripts-diagnose-cli 0.1.1-alpha.16 → 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.
- package/dist/index.cjs +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1375,6 +1375,10 @@ 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
|
+
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 {}
|
|
1378
1382
|
const installCmd = `npm i -g openclaw@${targetVersion || "latest"}`;
|
|
1379
1383
|
log(`running: ${installCmd}`);
|
|
1380
1384
|
const installStart = Date.now();
|
package/package.json
CHANGED