pkgx version : 2.7.0 pkgm version : 0.11.1 OS : WSL 2, Ubutun 20.04.6 `pkgm install` without `sudo` works, but with `sudo` I have this error message: ``` $ sudo pkgm install node sudo: unable to execute /root/.pkgx/pkgx.sh/v2.7.0/bin/pkgx: Permission denied ``` But I can run this ``` $ sudo /root/.pkgx/pkgx.sh/v2.7.0/bin/pkgx -v pkgx 2.7.0 ```
Activity
tannevaled commentedon Apr 29, 2026
is there any progress on this?
OS : Fresh Ubuntu 24.04 Cloud Image
jhheider commentedon Apr 29, 2026
my recollection is that
pkgmwill invokesudoitself. i'll take a look.tannevaled commentedon May 4, 2026
just proposed a PR to fix this
fix sudo handling and pkgx-under-/root reachability
tannevaled commentedon May 12, 2026
@jhheider can you take a look on this please?
ci: validate sudo pkgm install behaviour
ci: validate sudo pkgm install behaviour
fix sudo handling and pkgx-under-/root reachability