telnetlib icon indicating copy to clipboard operation
telnetlib copied to clipboard

isTTY error

Open henpett1 opened this issue 3 years ago • 2 comments

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

henpett1 avatar Nov 08 '21 07:11 henpett1

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.

cadpnq avatar Nov 08 '21 11:11 cadpnq

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.

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?

henpett1 avatar Nov 09 '21 21:11 henpett1