Skip to content

yarnpkg start fails with two warnings #1775

Closed
@foobarbecue

Description

@foobarbecue

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Can you reproduce the problem with latest npm?

Yes.

Description

Note that this problem only happens with the latest npm, 7.7.2 . I have checked on 7.5.0 or 5.12.0 and the issue does not happen; create-react-app runs as expected on those older versions of node.

A freshly created create-react-app does not run in response to the yarnpkg start or npm start commands. Instead,

Expected behavior

Tell us what you think should happen.

Actual behavior

aaron@kubuntu1604:~/cratest$ npm start

> cratest@0.1.0 start /home/aaron/cratest
> react-scripts start

(node:10728) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: "listener" argument must be a function
(node:10728) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
aaron@kubuntu1604:~/cratest$

Then, pointing a browser to localhost:3000 gives ERR_CONNECTION_REFUSED.

If I downgrade my node version to 7.5.0, then I get a message saying "Compiled successfully!" and a browser opens.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected):
aaron@kubuntu1604:~/cratest$ npm ls react-scripts
cratest@0.1.0 /home/aaron/cratest
└── react-scripts@0.9.4 
  1. node -v: v7.7.2
  2. npm -v: 4.3.0

Then, specify:

  1. Operating system: Kubuntu 16.04, running on VMware on Windows 10
  2. Browser and version: Chrome 58

Activity

Timer

Timer commented on Mar 9, 2017

@Timer
Contributor

Closing this in favor of #1776 since it has more information in the issue, they're duplicates. Thanks!

gaearon

gaearon commented on Mar 9, 2017

@gaearon
Contributor
locked and limited conversation to collaborators on Jan 22, 2019
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Timer@gaearon@foobarbecue

        Issue actions

          yarnpkg start fails with two warnings · Issue #1775 · facebook/create-react-app