Skip to content

CLI fails when Chrome is not present #17787

Description

@neiker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions