Tested on a Raspberry Pi 4 (4GB) with one phone (Samsung S21) over USB 2.0:
npm install -g ws-scrcpy ws-scrcpy