We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c6fe6a commit 0cc2a25Copy full SHA for 0cc2a25
1 file changed
src/claude-code/install.sh
@@ -95,6 +95,14 @@ install_claude_code() {
95
if command -v claude >/dev/null; then
96
echo "Claude Code CLI installed successfully!"
97
claude --version
98
+
99
+ # Ensure correct permissions for auto-updates
100
+ local global_node_modules=$(npm root -g)
101
+ if [ -d "$global_node_modules/@anthropic-ai" ]; then
102
+ chmod -R g+rw "$global_node_modules/@anthropic-ai" \
103
+ || echo "WARNING: Could not set permissions on install directory"
104
+ fi
105
106
return 0
107
else
108
echo "ERROR: Claude Code CLI installation failed!"
0 commit comments