worclaude 1.2.7 → 1.2.8
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/package.json +1 -1
- package/src/commands/upgrade.js +7 -3
package/package.json
CHANGED
package/src/commands/upgrade.js
CHANGED
|
@@ -24,9 +24,13 @@ function selfUpdate(latestVersion) {
|
|
|
24
24
|
spinner.succeed(`worclaude updated to v${latestVersion}.`);
|
|
25
25
|
return true;
|
|
26
26
|
} catch (err) {
|
|
27
|
-
spinner.fail('Self-update failed.');
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
spinner.fail('Self-update failed (permission denied).');
|
|
28
|
+
const msg = String(err.message || err);
|
|
29
|
+
if (msg.includes('EACCES') || msg.includes('permission denied') || msg.includes('EPERM')) {
|
|
30
|
+
display.info('Try: sudo npm install -g worclaude@latest');
|
|
31
|
+
} else {
|
|
32
|
+
display.info('Try manually: npm install -g worclaude@latest');
|
|
33
|
+
}
|
|
30
34
|
return false;
|
|
31
35
|
}
|
|
32
36
|
}
|