Closed sayantan300 closed 2 years ago
Imho there are several things not working here (also referring to https://github.com/microsoft/node-pty/issues/446#issuecomment-931942783):
node-pty
needs to extend the nodejs binary from the snap container by building against the same lib chain. That error version 'GLIBC_2.32' not found
tells you, that nodejs in snap was build against that glibc version, which your outer system does not provide. You have to set up the correct build env with that glibc version (and prolly other included libs as well). Idk how this can be achieved from outside of a snap container without bootstrapping the whole build env with the right lib versions yourself. Maybe nodejs provides another snap container including a proper build env?
Furthermore in https://github.com/microsoft/node-pty/issues/446#issuecomment-931942783 you run into a permission issue with snap containers - they usually have reduced permissions and cannot manipulate things outside easily. I am not sure, if you can get native modules being built correctly outside of the snap container at all. I suggest to look into nvm and do a proper nodejs install without snap. This works for me with all node versions v10 - v14.node-pty
is not yet officially supported for nodejs >v14.Thanks for the detailed explanation! Btw, will that fix if I download tar file from nodejs org and install it manually on my pc? Also I need to use nodejs v16 due to discordjs v13 needs nodejs v16, and v16 got some cool features that I was really looking for.
Using the tarball might be too much, as it would need you to build and install from sources. I suggest to use nvm
, which can hold and switch between node versions easily.
Edit:
I have not tried v16 yet with node-pty
, but there are several issue reports, that it is not working out of the box due to changed native API.
Yea, I thought that, that's why I had used snap. Well I was just installing nvm
duplicate of #438
Environment details
Issue description
When Im requiring node-pty, it logs an error related to GCLIB. Reproduceable Code:
Note: Im not using any electron stuff. I just did a simple installation of node-pty.
Error Logs: