Question:
I am trying to run a javascript file on replit with Python subprocess module but I keep getting errors. I am sharing my code and error below. I would appreciate if you can help me.
Repl link:
import subprocess
result = subprocess.run(["node", "files/760426163369017375.js"],
capture_output=True,
text=True)
print(result)
Code Error:
CompletedProcess(args=['node', 'files/760426163369017375.js'], returncode=1, stdout='', stderr="node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /nix/store/ia1nj04xx5v5rbg349m6dpicl1j11cwi-cpplibs/lib/libstdc++.so.6)\nnode: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /nix/store/ia1nj04xx5v5rbg349m6dpicl1j11cwi-cpplibs/lib/libstdc++.so.6)\nnode: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.36' not found (required by /nix/store/ia1nj04xx5v5rbg349m6dpicl1j11cwi-cpplibs/lib/libstdc++.so.6)\nnode: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /nix/store/ia1nj04xx5v5rbg349m6dpicl1j11cwi-cpplibs/lib/libstdc++.so.6)\n")