mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-27 18:51:57 +08:00
- sudo -E is incompatible with sudo-rs (Ubuntu 25.10+) - sudo cannot prompt for password from GUI apps (no TTY) - Split npm_command() (read-only, no elevation) and npm_command_elevated() (write ops) - npm_command_elevated() checks if npm prefix is user-writable (nvm/fnm/volta) - Falls back to pkexec (graphical auth dialog) then sudo --non-interactive - Passes env vars explicitly via /usr/bin/env instead of -E