facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.58k stars 24.37k forks source link

CLI fails when Chrome is not present #17787

Closed neiker closed 6 years ago

neiker commented 6 years ago

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment: OS: macOS High Sierra 10.13.2 Node: 8.9.0 Yarn: Not Found npm: 5.6.0 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: Not Found

Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.51.0 => 0.51.0

Steps to Reproduce

  1. Run npm start on a computer where chrome is not installed

Expected Behavior

Build flawless

Actual Behavior

Bundling `index.ios.js`  [development, non-minified]  ▓▓░░░░░░░░░░░░░░  13.7% (81/219)Launching Dev Tools...
Bundling `index.ios.js`  [development, non-minified]  ▓▓░░░░░░░░░░░░░░  14.4% (84/221)Google Chrome exited with error: Error: Exited with code 1
    at ChildProcess.<anonymous> (/Users/[user]/code/native-ios/node_modules/opn/index.js:86:8)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)

After I opened http://localhost:8081/debugger-ui/ on Firefox, it works correctly

Bundling `index.ios.js`  [development, non-minified]  100.0% (1328/1328), done.

Reproducible Demo

Just a fresh install

gedeagas commented 6 years ago

I think this is not a bug.

This maybe happens because you once enable the debugging option on the specific emulator. So when you do npm start the debugging options is triggered.

if you a init a new clean project and run npm start it should work flawlessly.

Please correct me if I'm wrong.

neiker commented 6 years ago

Thanks for your answer, @gedeagas

If this is so, where is saved that setting? My start script is just this: "start": "NODE_ENV='development' node node_modules/react-native/local-cli/cli.js start",

react-native-bot commented 6 years ago

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to ContributeWhat to Expect from Maintainers

salmanwaheed commented 6 years ago

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a temporary error. The following address(es) deferred:

mkdirenv@gmail.com Domain salmanwaheed.info has exceeded the max emails per hour (155/150 (103%)) allowed. Message will be reattempted later

------- This is a copy of the message, including all the headers. ------ Received: from o11.sgmail.github.com ([167.89.101.202]:61057) by box1177.bluehost.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from bounces+848413-a7b0-hello=salmanwaheed.info@sgmail.github.com) id 1epQUm-003IeI-Lp for hello@salmanwaheed.info; Fri, 23 Feb 2018 20:27:33 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=6iMl91g33PMoPFvbjKmz0GQ829Q=; b=ZU8GkubZ87o97nj1 d2YharoOSM+AnVOuV/nDYbu7QGYdvoyu5E+lfIJgSkwgNtqmTqZF5nP0YjqQdlBo NZaxb/3AsmgQS/hH+FOBtBrbDatV8BbOTvmhRab3+qJUV76EEEcHJB1W6AMcB8HG A7k6vzNNdj6ahL5k4xaSmvNxz8s= Received: by filter0144p1iad2.sendgrid.net with SMTP id filter0144p1iad2-24766-5A90DB94-10 2018-02-24 03:27:16.70121636 +0000 UTC Received: from github-smtp2b-ext-cp1-prd.iad.github.net (github-smtp2b-ext-cp1-prd.iad.github.net [192.30.253.17]) by ismtpd0007p1iad2.sendgrid.net (SG) with ESMTP id fborayXpShySa4cZKCqoKA for hello@salmanwaheed.info; Sat, 24 Feb 2018 03:27:16.675 +0000 (UTC) Date: Sat, 24 Feb 2018 03:27:16 +0000 (UTC) From: React Native Bot notifications@github.com Reply-To: facebook/react-native reply@reply.github.com To: facebook/react-native react-native@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Message-ID: facebook/react-native/issue/17787/issue_event/1490267440@github.com In-Reply-To: facebook/react-native/issues/17787@github.com References: facebook/react-native/issues/17787@github.com Subject: Re: [facebook/react-native] CLI fails when Chrome is not present (#17787) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5a90da61f26a0_24643fc7ee03ef303727d2"; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: list X-GitHub-Sender: react-native-bot X-GitHub-Recipient: salmanwaheed X-GitHub-Reason: subscribed List-ID: facebook/react-native List-Archive: https://github.com/facebook/react-native List-Post: mailto:reply@reply.github.com List-Unsubscribe: mailto:unsub+00ef1b382327de373b913d7d72f4d642efcce9c089ef149292cf0000000116a89c6192a169ce11742310@reply.github.com, https://github.com/notifications/unsubscribe/AO8bOCid4usoH_JNUPjzOdxhKR9BlqR-ks5tX4BhgaJpZM4Rygov X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: hello@salmanwaheed.info X-SG-EID: 92ws1MVnlto3blxqXlf5goB0ee0kdDGWR6vcWx8d64/AAzR4sBlNyRWq8pZ2LbjtiHy8a4o+Om3hrL hoe9NgVOBc9pahGdIaSSw0L65beA/eLD0irnzd4ul17BQM4OR4A4GEh05qpBPJ64TbdUxTOopaSAi3 bqdCP8vQdUVj6qrZiHuaCvE0qnLJgum4GkgLToh3ge99YTBvvwA4wlLDj7GCIfZ//SrxA/kOwFX5Zn E= X-Spam-Status: No, score=0.8 X-Spam-Score: 8 X-Spam-Bar: / X-Ham-Report: Spam detection software, running on the system "box1177.bluehost.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see root\@localhost for details.

Content preview: Closed #17787. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/facebook/react-native/issues/17787#event-1490267440 [...]

Content analysis details: (0.8 points, 5.0 required)

pts rule name description


0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: github.com] -0.5 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 1.3 HTML_IMAGE_ONLY_24 BODY: HTML: images with 2000-2400 bytes of words 0.0 HTML_MESSAGE BODY: HTML included in message 2.5 DCC_CHECK No description available. -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -2.3 AWL AWL: Adjusted score from AWL reputation of From: address X-Spam-Flag: NO

----==_mimepart_5a90da61f26a0_24643fc7ee03ef303727d2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #17787.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/facebook/react-native/issues/17787#event-1490267440 ----==_mimepart_5a90da61f26a0_24643fc7ee03ef303727d2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Closed #17787.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_5a90da61f26a0_24643fc7ee03ef303727d2--

salmanwaheed commented 6 years ago

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its recipients. This is a temporary error. The following address(es) deferred:

mkdirenv@gmail.com Domain salmanwaheed.info has exceeded the max emails per hour (168/150 (112%)) allowed. Message will be reattempted later

------- This is a copy of the message, including all the headers. ------ Received: from github-smtp2-ext2.iad.github.net ([192.30.252.193]:52816 helo=github-smtp2b-ext-cp1-prd.iad.github.net) by box1177.bluehost.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from noreply@github.com) id 1epQVJ-003J8I-I2 for hello@salmanwaheed.info; Fri, 23 Feb 2018 20:28:06 -0700 Date: Fri, 23 Feb 2018 19:22:07 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1519442870; bh=JiJIeG2fB9FiAnpgNjJTQu2T+DbbxLUblB0RhYEMcJ0=; h=From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=Ng5s7uVf1fuVHiV/T5eEDtbVAoVCXZDeQufeBnyDVcOj60gYwLY5pGEDR8iel7TNQ n7ZsrBKkhakN4MWOW2+DyMr3DkMoSjxqBveED6rJiASB+4CyRRMevy5h+3fW4HoZR8 6tpIOn06PJNrvVZW7Faxy9lIyLYvvu/Xyz7SiNwI= From: React Native Bot notifications@github.com Reply-To: facebook/react-native reply@reply.github.com To: facebook/react-native react-native@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Message-ID: facebook/react-native/issues/17787/368194879@github.com In-Reply-To: facebook/react-native/issues/17787@github.com References: facebook/react-native/issues/17787@github.com Subject: Re: [facebook/react-native] CLI fails when Chrome is not present (#17787) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5a90da5fd521a_1e3c3fec8c286f28232753"; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: list X-GitHub-Sender: react-native-bot X-GitHub-Recipient: salmanwaheed X-GitHub-Reason: subscribed List-ID: facebook/react-native List-Archive: https://github.com/facebook/react-native List-Post: mailto:reply@reply.github.com List-Unsubscribe: mailto:unsub+00ef1b38ee86f4247349adef3a76819dc8f21d9974c3898a92cf0000000116a89c5f92a169ce11742310@reply.github.com, https://github.com/notifications/unsubscribe/AO8bOBdzXwCLK_A9pktDGppztYFIpgw5ks5tX4BfgaJpZM4Rygov X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: hello@salmanwaheed.info X-Spam-Status: No, score=-1.0 X-Spam-Score: -9 X-Spam-Bar: - X-Ham-Report: Spam detection software, running on the system "box1177.bluehost.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see root\@localhost for details.

Content preview: Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version? [...]

Content analysis details: (-1.0 points, 5.0 required)

pts rule name description


0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: github.io] -0.5 SPF_PASS SPF: sender matches SPF record 0.0 HTML_IMAGE_ONLY_32 BODY: HTML: images with 2800-3200 bytes of words 0.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.4 AWL AWL: Adjusted score from AWL reputation of From: address X-Spam-Flag: NO

----==_mimepart_5a90da5fd521a_1e3c3fec8c286f28232753 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Thanks for posting this! It looks like you may not be using the latest ve= rsion of React Native, v0.53.0, released on January 2018. Can you make su= re this issue can still be reproduced in the latest version? =

I am going to close this, but please feel free to open a new issue if you= are able to confirm that this is still a problem in v0.53.0 or newer.

How to Contribute =E2=80=A2 What to Expect from Maintainers</s= ub>

-- =

You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/facebook/react-native/issues/17787#issuecomment-368194= 879=

----==_mimepart_5a90da5fd521a_1e3c3fec8c286f28232753 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Thanks for posting this! It looks like you may not be using the latest= version of React Native, v0.53.0, released on January 2018. Can you make= sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if = you are able to confirm that this is still a problem in v0.53.0 or newer.=

How to Contribute =E2=80=A2 What to Expect from Maintainers

<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&m= dash;
You are receiving this because you are subscribed to this thre= ad.
Reply to this email directly, <a href=3D"https://github.com/face= book/react-native/issues/17787#issuecomment-368194879">view it on GitHub<= /a>, or <a href=3D"https://github.com/notifications/unsubscribe-auth/AO8b= OA6mCqDiIURy1xdjdjRvvXyplJ4Hks5tX4BfgaJpZM4Rygov">mute the thread.<im= g alt=3D"" height=3D"1" src=3D"https://github.com/notifications/beacon/AO= 8bODl7Yb8iypt5V-ZSoOqbVwg_Pg9Lks5tX4BfgaJpZM4Rygov.gif" width=3D"1" /></p=

<div itemscope itemtype=3D"http://schema.org/EmailMessage"> <div itemprop=3D"action" itemscope itemtype=3D"http://schema.org/ViewActi= on"> <link itemprop=3D"url" href=3D"https://github.com/facebook/react-native= /issues/17787#issuecomment-368194879"> <meta itemprop=3D"name" content=3D"View Issue">

<meta itemprop=3D"description" content=3D"View this Issue on GitHub"></me= ta>

<script type=3D"application/json" data-scope=3D"inboxmarkup">{"api_versio= n":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name"= :"GitHub"},"entity":{"external_key":"github/facebook/react-native","title= ":"facebook/react-native","subtitle":"GitHub repository","main_image_url"= :"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d8= 8-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubuse= rcontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.= png","action":{"name":"Open in GitHub","url":"https://github.com/facebook= /react-native"}},"updates":{"snippets":[{"icon":"PERSON","message":"@reac= t-native-bot in #17787: Thanks for posting this! It looks like you may no= t be using the latest version of React Native, v0.53.0, released on Janua= ry 2018. Can you make sure this issue can still be reproduced in the late= st version? \n\nI am going to close this, but please feel free to open a = new issue if you are able to confirm that this is still a problem in v0.5= 3.0 or newer.\n\n\u003csub\u003eHow to Contribute =E2=80=A2 What to Expect= from Maintainers\u003c/sub\u003e\n\n"}],"action":{"name":"View Is= sue","url":"https://github.com/facebook/react-native/issues/17787#issueco= mment-368194879"}}}=

----==_mimepart_5a90da5fd521a_1e3c3fec8c286f28232753--