You need to downgrade to node version 20.12.1
As since after this version a CVE was patched causing the child dependency node-pty-prebuilt-multiarch to fail due to it's install script.
node-pty-prebuilt-multiarch
Node Security Release