fix warning

This commit is contained in:
DennisYu07 2026-02-11 23:08:00 -08:00
parent 1c38840490
commit 66e3cdfb71

View file

@ -58,7 +58,7 @@ 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
sudo chown -R "$(whoami)":staff ~/.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