Skip to content

Repl stopped working after 4.0.0 #487

Closed

Description

@saadataz

simply running ts-node no longer opens REPL terminal
Rolling back to 3.3.0 fixed it

Activity

  1. stelcheck commented on Dec 15, 2017

    @stelcheck
    Contributor

    Seems to work for me. Can you specify the platform, node version you are running, and any additional contextual information that might help us figure out your issue?

  2. blakeembrey commented on Dec 15, 2017

    @blakeembrey
    Member

    Possibly the same issue as #480?

  3. nwayve commented on Dec 18, 2017

    @nwayve

    I just ran across this issue today as well.

    > npm i -g ts-node
    + ts-node@4.02
    > ts-node
    // No REPL, just returns to the prompt
    > npm r -g ts-node
    > npm i -g ts-node@3.x
    + ts-node@3.3.0
    > ts-node
    > // in REPL
    
    > npm --versions
    { myProject: '1.0.0',
      npm: '5.6.0',
      ares: '1.13.0',
      cldr: '32.0',
      http_parser: '2.7.0',
      icu: '60.1',
      modules: '59',
      nghttp2: '1.25.0',
      node: '9.3.0',
      openssl: '1.0.2n',
      tz: '2017c',
      unicode: '10.0',
      uv: '1.18.0',
      v8: '6.2.414.46-node.15',
      zlib: '1.2.11' }
    > tsc -v
    Version 2.6.2
    
    > systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
    OS Name:                   Microsoft Windows 10 Pro
    OS Version:                10.0.16299 N/A Build 16299
    

    Issue #480 was closed with "Upgrade to latest ts-node" but from what I can tell, 4.0.2 is the latest as of this post. Hope this info helps.

  4. yuxino commented on Dec 19, 2017

    @yuxino

    Same Issues

  5. stelcheck commented on Dec 19, 2017

    @stelcheck
    Contributor

    @nbsaw @nwayve Could you try to test #489 and see if this solves your issue?

  6. nwayve commented on Dec 19, 2017

    @nwayve

    @stelcheck That worked for me.

    > npm i -g ts-node@*
    + 4.0.2
    > ts-node
    // No REPL as expected
    

    Went into /node_modules/ts-node/dist/bin.js and set detached: true to detached: process.platform !== 'win32'

    > ts-node
    > // REPL!
    

    Awesome find, thank you!

  7. yuxino commented on Dec 20, 2017

    @yuxino

    @stelcheck worked for me . thank !

  8. blakeembrey commented on Feb 19, 2018

    @blakeembrey
    Member

    Closing with #536.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions