Post #3300103
2026-06-12 10:19 UTC
… how do i make npm generally not work on Linux? I don’t use it and with how attack vectors are the majority of cases via NPM… environment variables pointing to /dev/null? Application firewall?
Replies (1)
-
@sirico@feddit.uk 2026-06-12 10:57
sudo {package-manager} remove npm nodejs sudo {package-manager} purge npm nodejs npm: sudo tee /usr/local/bin/npm >/dev/null /dev/null <<‘EOF’ #!/bin/sh echo “npx is blocked on this system.” exit 1 EOF sudo chmod 755 /usr/local/bin/npx Might break somethings but that’s a part of boycotting something I guess.