Skip to content

It cleared the entire console on first start #12984

@ghost

Description

Describe the bug

Immediately after installing create-react-app for the first time ever (npx create-react-app story-base --template typescript), I cd'd into the project folder and ran npm start to test it out (just as instructed).

This wiped my whole console scrollback. At first I thought it had started an ncurses window or something, but no, ending the process (ctrl-C) revealed it had simply destroyed my terminal environment.

Did you try recovering your dependencies?

Yes, this issue happened on a fresh installation twice.

Which terms did you search for in User Guide?

"clear console", "console cleared", "console scroll", "terminal clear", "cleared terminal", "terminal scroll"

Environment

  current version of create-react-app: 5.0.1
  running from /Users/nodingneu/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app

  System:
    OS: macOS 12.6.1
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
  Binaries:
    Node: 19.4.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 9.2.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 109.0.5414.87
    Edge: Not Found
    Firefox: Not Found
    Safari: 16.1
  npmPackages:
    react: ^18.2.0 => 18.2.0 
    react-dom: ^18.2.0 => 18.2.0 
    react-scripts: 5.0.1 => 5.0.1 
  npmGlobalPackages:
    create-react-app: Not Found

(By the way, the output of this command was not copied to my clipboard directly)

Steps to reproduce

  1. npx create-react-app my-app
  2. cd my-app
  3. npm start

Expected behavior

It should start running like any other normal program, either in a new window, or below the command line

Actual behavior

It cleared my entire scrollback buffer.

Reproducible demo

  1. npx create-react-app my-app
  2. cd my-app
  3. npm start

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions