mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
change staff group for cross platform
This commit is contained in:
parent
66e3cdfb71
commit
be37ba0fda
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ command_exists() {
|
|||
fix_npm_permissions() {
|
||||
echo "Fixing npm global directory permissions..."
|
||||
# 1. Change ownership of the entire .npm-global directory to current user
|
||||
sudo chown -R "$(whoami)":staff ~/.npm-global 2>/dev/null || true
|
||||
# Using only user ownership without specifying a group for cross-platform compatibility
|
||||
sudo chown -R "$(whoami)" ~/.npm-global 2>/dev/null || true
|
||||
|
||||
# 2. Fix directory permissions (ensure user has full read/write/execute permissions)
|
||||
chmod -R u+rwX ~/.npm-global 2>/dev/null || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue