Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarnpkg start fails with two warnings #1775

Closed
foobarbecue opened this issue Mar 9, 2017 · 2 comments
Closed

yarnpkg start fails with two warnings #1775

foobarbecue opened this issue Mar 9, 2017 · 2 comments

Comments

@foobarbecue
Copy link

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
@Timer
Copy link
Contributor

Timer commented Mar 9, 2017

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

@Timer Timer closed this as completed Mar 9, 2017
@gaearon
Copy link
Contributor

gaearon commented Mar 9, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants