Giter Club home page Giter Club logo

Comments (8)

anseki avatar anseki commented on June 6, 2024

Hi @SupersonicXD1, thank you for the comment.
Could you explain to reproduce that?
In other words, what did you do? For example, the code? The command?

from readline-sync.

SupersonicXD1 avatar SupersonicXD1 commented on June 6, 2024

@anseki The code:
const readlineSync = require('readline-sync'); readlineSync.question("crash")
Note that using require() does not crash node.js, but calling readlineSync.question(); does.

from readline-sync.

anseki avatar anseki commented on June 6, 2024

Did you run that code in Windows CMD?

from readline-sync.

a-hegerath avatar a-hegerath commented on June 6, 2024

FYI: I use to get this error when running a Javascript file from my IDE (in that case, IntelliJ IDEA), but when I run it in Windows CMD or Windows Powershell, the error does not show up. I have node v10.13.0 installed.

from readline-sync.

anseki avatar anseki commented on June 6, 2024

Hi @a-hegerath, thank you for the information.
Yes, as you said, I also guess that @SupersonicXD1 mistook the environment that runs the code.

from readline-sync.

SupersonicXD1 avatar SupersonicXD1 commented on June 6, 2024

@anseki sorry for getting back to you so late, I've been busy for the past few days. I ran the code in the IDE (WebStorm), not windows command prompt.

from readline-sync.

anseki avatar anseki commented on June 6, 2024

I see.
That is correct behavior.
readlineSync is a library to read/write via TTY.
See document: https://github.com/anseki/readline-sync
Therefore, of course that should never work without TTY (i.e. an environment that has no TTY).

from readline-sync.

anseki avatar anseki commented on June 6, 2024

No reply came, then this abandoned issue is closed.

from readline-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.