telnetlib
telnetlib copied to clipboard
isTTY error
I have tried to install telnetlib on linux but i keep getting this error:
/home/henpett/Desktop/server/node_modules/telnetlib/src/TelnetSocket/TelnetSocket.js:20
isTTY = true;
^
SyntaxError: Unexpected token =
it works like it should on windows but idk what's the problem
My thought is that you have an older version of node installed that does not support public class fields. What does node --version show? You will need at least version 12.0.0.
My thought is that you have an older version of node installed that does not support public class fields. What does
node --versionshow? You will need at least version 12.0.0.
this was the issue after updating everything worked as expected thanks! also is there any propper documentation on the diffrent events like connect and end etc?